public class OdbcResultSetMetaData implements ResultSetMetaData:
ODBC result-set metadata backed by the native ODBC descriptor.
import klyn.databases.sql
# rows = statement.executeQuery("select id, name from users")
# metadata = rows.metadata
# print(metadata.columnName(1))| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | columnCountcolumnCount as Int: |
Number of columns in the result set. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | autoIncrementautoIncrement(index as Int) as Boolean throws SQLException: |
Returns true for auto-increment columns when this information is known. |
| public | caseSensitivecaseSensitive(index as Int) as Boolean throws SQLException: |
Returns true when textual comparison is case-sensitive. |
| public | catalogNamecatalogName(index as Int) as String throws SQLException: |
Returns the catalog name when available. |
| public | columnClassNamecolumnClassName(index as Int) as String throws SQLException: |
Returns the Klyn value type used by the ODBC result-set reader. |
| public | columnLabelcolumnLabel(index as Int) as String throws SQLException: |
Returns the display label for a column. |
| public | columnNamecolumnName(index as Int) as String throws SQLException: |
Returns the source column name. |
| public | columnTypecolumnType(index as Int) as Int throws SQLException: |
Returns the SQL type code for a column. |
| public | columnTypeNamecolumnTypeName(index as Int) as String throws SQLException: |
Returns the SQL type name for a column. |
| public | definitelyWritabledefinitelyWritable(index as Int) as Boolean throws SQLException: |
Returns true when writes are guaranteed to be accepted by the driver. |
| public | displaySizedisplaySize(index as Int) as Int throws SQLException: |
Returns the display size for a column. |
| public | nullabilitynullability(index as Int) as Nullability throws SQLException: |
Returns the nullability contract for a column. |
| public | precisionprecision(index as Int) as Int throws SQLException: |
Returns numeric precision for a column. |
| public | readOnlyreadOnly(index as Int) as Boolean throws SQLException: |
Returns true for read-only columns. |
| public | scalescale(index as Int) as Int throws SQLException: |
Returns numeric scale for a column. |
| public | schemaNameschemaName(index as Int) as String throws SQLException: |
Returns the schema name when available. |
| public | searchablesearchable(index as Int) as Boolean throws SQLException: |
Returns true when the column can be searched in predicates. |
| public | signedsigned(index as Int) as Boolean throws SQLException: |
Returns true when the column is signed numeric. |
| public | tableNametableName(index as Int) as String throws SQLException: |
Returns the table name when available. |
| public | writablewritable(index as Int) as Boolean throws SQLException: |
Returns true for writable columns. |