Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Database

Hierarchy

  • Database

Index

Constructors

constructor

Properties

Readonly parent

Methods

create

  • create(): Promise<boolean>
  • Create the database

    Returns Promise<boolean>

    true, if the database was successfuly created

delete

  • delete(): Promise<boolean>
  • Delete the database

    Returns Promise<boolean>

    true, if the database was sucessfuly deleted

exists

  • exists(): Promise<boolean>
  • Check whether does the database exist

    Returns Promise<boolean>

    true, if the databse does exist

getName

  • getName(): string

getTable

  • getTable(name: string): Table

getTableIfExists

  • getTableIfExists(name: string): Promise<Table | undefined>
  • Get the table by it's name if it exists, undefined otherwise

    Parameters

    • name: string

      table name

    Returns Promise<Table | undefined>

    the table if it exists, undefined otherwise

getTables

  • getTables(): Promise<Table[]>

rename

  • rename(newName: string): Promise<boolean>
  • Rename the database

    Parameters

    • newName: string

      the new name of the database

    Returns Promise<boolean>

    true, if the database was sucessfuly renamed

table

  • table(name: string): Table

Generated using TypeDoc