containsSchema

open fun containsSchema(schemaName: String): Boolean

The name of the schema is first checked for an exact lexicographical match. If a match occurs, the schema is returned. If a lexicographical match fails, then a check for a match ignoring the case of the string is performed. This is done because SQL identifier names should be case-insensitive. If neither matches then false is returned.

Uses the longLastingConnection property for the connection.

Return

true if the database contains a schema with the provided name

Parameters

schemaName

the schema name to check