public class SnowflakeDriver extends Object implements Driver
Note: don't add logger to this class since logger init will potentially break driver class loading
| Modifier and Type | Field and Description |
|---|---|
static long |
changeVersion |
protected static boolean |
disableIncidents |
static String |
implementVersion |
static SnowflakeDriver |
INSTANCE |
static int |
majorVersion |
static int |
minorVersion |
| Constructor and Description |
|---|
SnowflakeDriver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(String url)
Checks whether a given url is in a valid format.
|
Connection |
connect(String url,
Properties info)
Connect method
|
int |
getMajorVersion() |
int |
getMinorVersion() |
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info) |
static boolean |
isDisableIncidents() |
boolean |
jdbcCompliant() |
static void |
main(String[] args) |
static void |
setDisableIncidents(boolean throttleIncidents) |
public static SnowflakeDriver INSTANCE
public static String implementVersion
public static int majorVersion
public static int minorVersion
public static long changeVersion
protected static boolean disableIncidents
public boolean acceptsURL(String url)
The current uri format is: jdbc:snowflake://[host[:port]]
jdbc:snowflake:// - run in embedded mode jdbc:snowflake://localhost - connect to localhost default port (8080)
jdbc:snowflake://localhost:8080- connect to localhost port 8080
acceptsURL in interface Driverurl - url of the database including host and portpublic Connection connect(String url, Properties info) throws SQLException
connect in interface Driverurl - jdbc urlinfo - addition info for passing database/schema namesSQLException - if failed to create a snowflake connectionpublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface Driverpublic DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo in interface DriverSQLExceptionpublic boolean jdbcCompliant()
jdbcCompliant in interface Driverpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface DriverSQLFeatureNotSupportedExceptionpublic static boolean isDisableIncidents()
public static void setDisableIncidents(boolean throttleIncidents)
public static final void main(String[] args)
Copyright © 2019. All rights reserved.