Skip to content

database.hasTable()

Oxford Harrison edited this page Nov 15, 2024 · 4 revisions

DOCSAPIDatabase API


Check if a table exists.

Syntax

database.hasTable(
    name: string,
): Promise<boolean>;
Param Interfaces Description
name - A table name.

Usage

Check if table exists:

const exists = await database.hasTable('table_1');
console.log(exists); // true | false
Clone this wiki locally