public class OdbcDatabaseMetaData implements DatabaseMetaData:
Database metadata exposed by an ODBC connection.
import klyn.databases.sql
# cnx = DriverManager.connect("odbc://app")
# metadata = cnx.metadata
# tables = metadata.tables(tablePattern="users")| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | connectionconnection as Connection: |
Owning connection. |
| public readonly property | driverNamedriverName as String: |
ODBC driver name. |
| public readonly property | driverVersiondriverVersion as String: |
ODBC driver version. |
| public readonly property | productNameproductName as String: |
Database product name reported by the ODBC driver. |
| public readonly property | productVersionproductVersion as String: |
Database product version reported by the ODBC driver. |
| public readonly property | readOnlyreadOnly as Boolean: |
True when the connection is read-only. |
| public readonly property | supportsBatchUpdatessupportsBatchUpdates as Boolean: |
ODBC statement batches are executed sequentially by the Klyn driver. |
| public readonly property | supportsNamedParameterssupportsNamedParameters as Boolean: |
Named parameters are not part of the portable ODBC path. |
| public readonly property | supportsPreparedStatementssupportsPreparedStatements as Boolean: |
ODBC prepared statements are supported. |
| public readonly property | supportsSavepointssupportsSavepoints as Boolean: |
Savepoints are sent as SQL statements to the database. |
| public readonly property | supportsStoredProceduressupportsStoredProcedures as Boolean: |
Stored procedure calls are delegated to the ODBC driver. |
| public readonly property | supportsTransactionssupportsTransactions as Boolean: |
ODBC supports transaction operations when the target driver does. |
| public readonly property | urlurl as String: |
Effective connection URL. |
| public readonly property | userNameuserName as String: |
Effective user name. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | catalogscatalogs() as ResultSet throws SQLException: |
Returns catalog metadata. |
| public | columns | Returns column metadata. |
| public | exportedKeysexportedKeys(catalog as String = "",
schema as String = "",
tableName as String = "") as ResultSet throws SQLException: |
Returns exported-key metadata. |
| public | functionsfunctions(catalog as String = "",
schemaPattern as String = "",
functionPattern as String = "%") as ResultSet throws SQLException: |
Returns function metadata when the ODBC driver exposes it. |
| public | importedKeysimportedKeys(catalog as String = "",
schema as String = "",
tableName as String = "") as ResultSet throws SQLException: |
Returns imported-key metadata. |
| public | primaryKeysprimaryKeys(catalog as String = "",
schema as String = "",
tableName as String = "") as ResultSet throws SQLException: |
Returns primary-key metadata. |
| public | proceduresprocedures(catalog as String = "",
schemaPattern as String = "",
procedurePattern as String = "%") as ResultSet throws SQLException: |
Returns stored-procedure metadata. |
| public | schemasschemas() as ResultSet throws SQLException: |
Returns schema metadata. |
| public | tableTypestableTypes() as ResultSet throws SQLException: |
Returns supported table types. |
| public | tables | Returns table metadata. |
| public | typeInfotypeInfo() as ResultSet throws SQLException: |
Returns supported SQL type metadata. |