Hierarchy

  • TableInfo

Constructors

Properties

columns: TableColumn[]

Table columns

namesToColumns: Map<string, TableColumn> = ...

Column name to column mapping

primaryKeys: TableColumn[] = []

Primary key column names

tableName: string

Table name

CID: string = 'cid'

Index column

DEFAULT_NULL: string = 'NULL'

Default of NULL value

DFLT_VALUE: string = 'dflt_value'

Default value column

NAME: string = 'name'

Name column

NOT_NULL: string = 'notnull'

Not null column

PK: string = 'pk'

Primary key column

TYPE: string = 'type'

Type column

Methods

  • Check if the table has the column

    Returns

    true if has column

    Parameters

    • name: string

      column name

    Returns boolean

  • Check if the table has one or more primary keys

    Returns

    true if has at least one primary key

    Returns boolean

Generated using TypeDoc