public importedKeys(catalog as String = "", schema as String = "", tableName as String = "") as ResultSet throws SQLException
Returns imported-key metadata for one table.
Rows expose the portable labels PKTABLE_CAT, PKTABLE_SCHEM, PKTABLE_NAME, PKCOLUMN_NAME, FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, FKCOLUMN_NAME, KEY_SEQ, UPDATE_RULE, DELETE_RULE, and FK_NAME. KEY_SEQ starts at one and preserves the column order of composite foreign keys. FK_NAME identifies the rows that belong to the same foreign-key constraint.
import klyn.databases.sql keys = metadata.importedKeys(tableName="orders")