All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lenses.jdbc4.mappers.ShowTablesMapper.kt Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package io.lenses.jdbc4.mappers

import io.lenses.jdbc4.row.ListRow
import io.lenses.jdbc4.row.Row

/**
 * Each table description has the following columns:
 *  
    *
  1. TABLE_CAT String {@code =>} table catalog (may be null) *
  2. TABLE_SCHEM String {@code =>} table schema (may be null) *
  3. TABLE_NAME String {@code =>} table name *
  4. TABLE_TYPE String {@code =>} table type. Typical types are "TABLE", * "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", * "LOCAL TEMPORARY", "ALIAS", "SYNONYM". *
  5. REMARKS String {@code =>} explanatory comment on the table *
  6. TYPE_CAT String {@code =>} the types catalog (may be null) *
  7. TYPE_SCHEM String {@code =>} the types schema (may be null) *
  8. TYPE_NAME String {@code =>} type name (may be null) *
  9. SELF_REFERENCING_COL_NAME String {@code =>} name of the designated * "identifier" column of a typed table (may be null) *
  10. 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