Type Alias Table<TableType>

Table: {
    add: (entry: TableType) => Promise<ProcessedTableEntry<TableType>>;
    all: <FetchedColumns extends TableEntryKeys<TableEntry>>(
        ...columns: FetchedColumns[],
    ) => Promise<RestrictedTableEntry<TableType, FetchedColumns>[]>;
    columns: () => Promise<string[]>;
    create: (column: string, type: DataType) => Promise<void>;
    delete: (column: string, value: unknown) => Promise<void>;
    drop: (column: string) => Promise<void>;
    get: <FetchedColumns extends TableEntryKeys<TableEntry>>(
        columns: FetchedColumns[],
        filter?: FilterFunction<RestrictedTableEntry<TableType, FetchedColumns>>,
    ) => Promise<RestrictedTableEntry<TableType, FetchedColumns>[]>;
    has: (column: string) => Promise<boolean>;
    toString: () => Promise<string>;
    update: (
        column: string,
        equals: Primative<SQLType>,
        values: Partial<TableType>,
    ) => Promise<TableType[]>;
}

Type Parameters

Type declaration