| Constructor and Description |
|---|
Driver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(String url)
returns true if the driver can accept the url.
|
static Connection |
connect(Configuration configuration)
Connect according to configuration
|
Connection |
connect(String url,
Properties props)
Connect to the given connection string.
|
static String |
enquoteIdentifier(String identifier,
boolean alwaysQuote) |
static String |
enquoteLiteral(String val)
Enquote String value.
|
int |
getMajorVersion()
gets the major version of the driver.
|
int |
getMinorVersion()
gets the minor version of the driver.
|
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info)
Get the property info.
|
static boolean |
isSimpleIdentifier(String identifier)
Retrieves whether identifier is a simple SQL identifier.
|
boolean |
jdbcCompliant()
checks if the driver is jdbc compliant.
|
public static Connection connect(Configuration configuration) throws SQLException
configuration - configurationSQLException - if connect failspublic Connection connect(String url, Properties props) throws SQLException
connect in interface Driverurl - the url to connect toSQLException - if it is not possible to connectpublic boolean acceptsURL(String url)
acceptsURL in interface Driverurl - the url to testpublic DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo in interface Driverurl - the url to get properties forinfo - the info propsSQLException - if there is a problem getting the property infopublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface Driverpublic boolean jdbcCompliant()
jdbcCompliant in interface Driverpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface DriverSQLFeatureNotSupportedExceptionpublic static String enquoteIdentifier(String identifier, boolean alwaysQuote) throws SQLException
SQLExceptionpublic static String enquoteLiteral(String val)
val - string value to enquotepublic static boolean isSimpleIdentifier(String identifier)
identifier - identifierCopyright © 2025 SingleStore. All rights reserved.