viewNames

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

Returns a list of views 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 view names within the schema. The list may be empty if no views 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 views. If null, then a list of view 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 views may be returned.