Skip to main content

Exists

Exists Method

Table Of Exists Method

Parameters

  • table (table name)
  • key (the key name to check if it exists)
exists(table, key)

Example Usage

await db.exists('my_table', 'foo');
// -> Checks if a specific data exists

Returned Data

Returns boolean whether the data exists or not

true