API 参考
    正在准备搜索索引...

    Foreign key from the database stored in this class.

    索引

    构造函数

    属性

    "@instanceof": symbol
    columnNames: string[]

    Column names which included by this foreign key.

    deferrable?: string

    Set this foreign key constraint as "DEFERRABLE" e.g. check constraints at start or at the end of a transaction

    name?: string

    Name of the foreign key constraint.

    onDelete?: string

    "ON DELETE" of this foreign key, e.g. what action database should perform when referenced stuff is being deleted.

    onUpdate?: string

    "ON UPDATE" of this foreign key, e.g. what action database should perform when referenced stuff is being updated.

    referencedColumnNames: string[]

    Column names which included by this foreign key.

    referencedDatabase?: string

    Database of Table referenced in the foreign key.

    referencedSchema?: string

    Database of Table referenced in the foreign key.

    referencedTableName: string

    Table referenced in the foreign key.

    方法

    • Creates a new copy of this foreign key with exactly same properties.

      返回 TableForeignKey

    • Creates a new table foreign key from the given foreign key metadata.

      参数

      • metadata: ForeignKeyMetadata
      • driver: Driver

      返回 TableForeignKey