-
-
Notifications
You must be signed in to change notification settings - Fork 2
Database API
Oxford Harrison edited this page Nov 10, 2024
·
6 revisions
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. |
This object is obtained via client.database()