tableNames

fun tableNames(connection: Connection, schemaName: String?): List<String>

Returns a list of table names associated with the schema based on the supplied connection.

The connection should be open and is not closed during this function. It is the caller's responsibility to close the connection when appropriate.

Return

a list of table names within the schema. The list may be empty if no tables are defined within the schema.

Parameters

connection

A valid and open connection to a database.

schemaName

the name of the schema that should contain the tables. If null, then a list of table names not associated with a schema may be returned. Or, if the schema concept does not exist for the database, then the names of any user-defined tables may be returned.