public enum DriverInfo extends java.lang.Enum<DriverInfo>
| Enum Constant and Description |
|---|
DuckDB |
ERRANT |
H2 |
MySQL |
Oracle |
Postgres |
SQLite |
SqlServer |
UNTESTED |
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOGGER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
flakyParameterMetadata()
(circus music)
Some drivers don't provide query parameter types when the parameter's value is not set O_o For instance, depending
on the version, SQLite will either return VARCHAR for all parameters or it will throw an exception when a parameter
is not set.
|
java.lang.String |
getDriverBaseName() |
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getDriversInUse()
For logging/testing purposes, helps to know the full driver name.
|
static DriverInfo |
lookup(java.sql.DatabaseMetaData metadata) |
boolean |
requiresQueryExecForTableName()
Some drivers' query column metadata does not provide the table name info if the query is not first executed before
metadata collected.
|
static DriverInfo |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DriverInfo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DriverInfo DuckDB
public static final DriverInfo H2
public static final DriverInfo MySQL
public static final DriverInfo Oracle
public static final DriverInfo Postgres
public static final DriverInfo SQLite
public static final DriverInfo SqlServer
public static final DriverInfo UNTESTED
public static final DriverInfo ERRANT
public static DriverInfo[] values()
for (DriverInfo c : DriverInfo.values()) System.out.println(c);
public static DriverInfo valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getDriverBaseName()
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getDriversInUse()
public boolean requiresQueryExecForTableName()
Oracle, SqlServerpublic boolean flakyParameterMetadata()
SQLite, MySQLpublic static DriverInfo lookup(java.sql.DatabaseMetaData metadata) throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2024. All rights reserved.