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 |
---|---|
protected static boolean |
disableIncidents |
static Properties |
EMPTY_PROPERTIES |
static String |
implementVersion |
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
|
static String |
getDisableArrowResultFormatMessage() |
int |
getMajorVersion() |
int |
getMinorVersion() |
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info) |
static boolean |
isDisableArrowResultFormat() |
static boolean |
isDisableIncidents() |
boolean |
jdbcCompliant() |
static void |
main(String[] args) |
static void |
setDisableIncidents(boolean throttleIncidents) |
public static final Properties EMPTY_PROPERTIES
public static String implementVersion
protected static boolean disableIncidents
public static boolean isDisableArrowResultFormat()
public static String getDisableArrowResultFormatMessage()
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 Driver
url
- url of the database including host and portpublic Connection connect(String url, Properties info) throws SQLException
connect
in interface Driver
url
- jdbc urlinfo
- addition info for passing database/schema namesSQLException
- if failed to create a snowflake connectionpublic int getMajorVersion()
getMajorVersion
in interface Driver
public int getMinorVersion()
getMinorVersion
in interface Driver
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo
in interface Driver
SQLException
public boolean jdbcCompliant()
jdbcCompliant
in interface Driver
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface Driver
SQLFeatureNotSupportedException
public static boolean isDisableIncidents()
public static void setDisableIncidents(boolean throttleIncidents)
public static final void main(String[] args)
Copyright © 2021. All rights reserved.