containsTable

fun containsTable(connection: Connection, tableName: String, schemaName: String?): Boolean

Checks if the named table is within the schema based on the 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

true if it exists

Parameters

connection

A valid and open connection to a database.

schemaName

the name of the schema that should contain the table

tableName

a string representing the unqualified name of the table