Back
table-exists? (clj)
(source)function
(table-exists? db table-name)
Checks whether the migrations table exists, by attempting to select from
it. Note that this appears to be the only truly portable way to determine
whether the table exists in a schema which the `db` configuration will find
via a `SELECT FROM` or `INSERT INTO` the table. (In particular, note that
attempting to find the table in the database meta-data as exposed by the JDBC
driver does *not* tell you whether the table is on the current schema search
path.)