Skip to content
Oxford Harrison edited this page Nov 15, 2024 · 6 revisions

DOCSAPI


Database is the API for database-level operations. Each instance implements the following methods:

API Description
database.createTable() Programmatically perform a CREATE TABLE operation.
database.renameTable() Programmatically perform a RENAME TABLE operation.
database.alterTable() Programmatically perform an ALTER TABLE operation.
database.dropTable() Programmatically perform a DROP TABLE operation.
database.hasTable() Check if a table exists.
database.tables() Get the list of tables.
database.table() Obtain a Table instance.
database.schema() Obtain the database schema instance.
database.savepoint() Get the database's latest savepoint.
database.version() Get the database's current version tag.

Instantiation

Instances of Database are obtained via the client.database() and client.createDatabase() methods.

Clone this wiki locally