io.lenses.jdbc4.mappers.ShowTablesMapper.kt Maven / Gradle / Ivy
package io.lenses.jdbc4.mappers
import io.lenses.jdbc4.row.ListRow
import io.lenses.jdbc4.row.Row
/**
* Each table description has the following columns:
*
* - TABLE_CAT String {@code =>} table catalog (may be
null
)
* - TABLE_SCHEM String {@code =>} table schema (may be
null
)
* - TABLE_NAME String {@code =>} table name
*
- TABLE_TYPE String {@code =>} table type. Typical types are "TABLE",
* "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY",
* "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
*
- REMARKS String {@code =>} explanatory comment on the table
*
- TYPE_CAT String {@code =>} the types catalog (may be
null
)
* - TYPE_SCHEM String {@code =>} the types schema (may be
null
)
* - TYPE_NAME String {@code =>} type name (may be
null
)
* - SELF_REFERENCING_COL_NAME String {@code =>} name of the designated
* "identifier" column of a typed table (may be
null
)
* - REF_GENERATION String {@code =>} specifies how values in
* SELF_REFERENCING_COL_NAME are created. Values are
* "SYSTEM", "USER", "DERIVED". (may be
null
)
*
*/
object ShowTablesMapper : (Row) -> Row {
override fun invoke(row: Row): Row = ListRow(
listOf(
null,
null,
row.getString(1),
row.getString(2),
null,
null,
null,
null,
null,
null
)
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy