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

    Table options.

    interface TableOptions {
        checks?: TableCheckOptions[];
        columns?: TableColumnOptions[];
        comment?: string;
        database?: string;
        engine?: string;
        exclusions?: TableExclusionOptions[];
        foreignKeys?: TableForeignKeyOptions[];
        indices?: TableIndexOptions[];
        justCreated?: boolean;
        name: string;
        schema?: string;
        uniques?: TableUniqueOptions[];
        withoutRowid?: boolean;
    }
    索引

    属性

    Table check constraints.

    columns?: TableColumnOptions[]

    Table columns.

    comment?: string

    Table comment. Not supported by all database types.

    database?: string

    Table database.

    engine?: string

    Table engine.

    exclusions?: TableExclusionOptions[]

    Table check constraints.

    foreignKeys?: TableForeignKeyOptions[]

    Table foreign keys.

    indices?: TableIndexOptions[]

    Table indices.

    justCreated?: boolean

    Indicates if table was just created. This is needed, for example to check if we need to skip primary keys creation for new tables.

    name: string

    Table name.

    schema?: string

    Table schema.

    uniques?: TableUniqueOptions[]

    Table unique constraints.

    withoutRowid?: boolean

    Enables Sqlite "WITHOUT ROWID" modifier for the "CREATE TABLE" statement