-
-
Couldn't load subscription status.
- Fork 2
database.hasTable()
Oxford Harrison edited this page Nov 15, 2024
·
4 revisions
DOCS • API • Database API
Check if a table exists.
database.hasTable(
name: string,
): Promise<boolean>;| Param | Interfaces | Description |
|---|---|---|
name |
- | A table name. |
Check if table exists:
const exists = await database.hasTable('table_1');
console.log(exists); // true | false