UNPKG

iagate-querykit

Version:

QueryKit: lightweight TypeScript query toolkit with models, views, triggers, events, scheduler and adapters (better-sqlite3).

21 lines 869 B
import { QueryBuilder, type RelationshipSelector } from './query-builder'; import { type SeedRunnable } from './seed'; export declare class Model { protected static tableName: string; protected static banks?: string[]; protected banks?: string[]; protected fillable: string[]; protected guarded: string[]; static query<T = any>(this: any): QueryBuilder<T>; static withRelations<T = any>(this: any, selector?: RelationshipSelector<T>): QueryBuilder<T>; static seed<T = any>(this: any, dataOrSeed: Partial<T>[] | SeedRunnable<T>, opts?: { truncate?: boolean; }): Promise<number>; bank(bankOrBanks: string | string[]): this; private applyBanks; fill(attributes: Record<string, any>): void; private getFillableAttributes; save(): Promise<any>; delete(): Promise<any>; } //# sourceMappingURL=model.d.ts.map