ResultSetMetaData
interfacein packageklyn.databases.sql
public interface ResultSetMetaData:
ResultSetMetaData
Result-set metadata contract inspired by `java.sql.ResultSetMetaData`. Column-specific information stays on indexed methods, while global state is exposed as properties.
import klyn.databases.sql

metadata = rows.metadata
print(metadata.columnCount)
print(metadata.columnName(1))
Properties
Modifier and Type Member Description
public readonly property columnCount
columnCount as Int
Number of columns described by this metadata object.
Methods
Modifier and Type Member Description
public autoIncrement
autoIncrement(index as Int) as Boolean throws SQLException
Returns true for auto-increment columns.
public caseSensitive
caseSensitive(index as Int) as Boolean throws SQLException
Returns true for case-sensitive columns.
public catalogName
catalogName(index as Int) as String throws SQLException
Returns the catalog name for one column.
public columnClassName
columnClassName(index as Int) as String throws SQLException
Returns the driver value-class name for one column.
public columnLabel
columnLabel(index as Int) as String throws SQLException
Returns the display label for one column.
public columnName
columnName(index as Int) as String throws SQLException
Returns the declared column name.
public columnType
columnType(index as Int) as Int throws SQLException
Returns the JDBC-style SQL type code for one column.
public columnTypeName
columnTypeName(index as Int) as String throws SQLException
Returns the SQL type name for one column.
public definitelyWritable
definitelyWritable(index as Int) as Boolean throws SQLException
Returns true for definitely-writable columns.
public displaySize
displaySize(index as Int) as Int throws SQLException
Returns the display size for one column.
public nullability
nullability(index as Int) as Nullability throws SQLException
Returns the nullability contract for one column.
public precision
precision(index as Int) as Int throws SQLException
Returns the numeric precision for one column.
public readOnly
readOnly(index as Int) as Boolean throws SQLException
Returns true for read-only columns.
public scale
scale(index as Int) as Int throws SQLException
Returns the numeric scale for one column.
public schemaName
schemaName(index as Int) as String throws SQLException
Returns the schema name for one column.
public searchable
searchable(index as Int) as Boolean throws SQLException
Returns true for searchable columns.
public signed
signed(index as Int) as Boolean throws SQLException
Returns true for signed numeric columns.
public tableName
tableName(index as Int) as String throws SQLException
Returns the table name for one column.
public writable
writable(index as Int) as Boolean throws SQLException
Returns true for writable columns.