UNPKG

@abw/badger-database

Version:
80 lines 3.6 kB
import { default as Queryable } from './Queryable.js'; export class Table extends Queryable { constructor(database: any, config: any); config: any; database: any; table: any; columns: import('./types.js').TableColumns; readonly: string[]; required: string[]; keys: string[]; id: string; recordClass: any; recordConfig: any; queries: any; fragments: any; relations: any; build: any; configure(config: any): any; prepareFragments(config: any): any; insert(data: any, options: any): Promise<any>; prepareInsert(data: any, options: any): Promise<any>; validateInsert(data: any, options: any): Promise<{}[]>; insertOne(data: any, options?: {}): Promise<any>; insertAll(data: any, options: any): Promise<any[]>; insertOneRow(data: any, options: any): Promise<any>; insertAllRows(data: any, options: any): Promise<any[]>; insertOneRecord(data: any, options: any): Promise<any>; insertAllRecords(data: any, options: any): Promise<any[]>; inserted(input: any, output: any, options?: {}): Promise<any>; insertReload(input: any, output: any, options?: {}): Promise<any>; prepareUpdate(set: any, where: any, options: any): Promise<any>; validateUpdate(set: any, where: any, options: any): Promise<{}[]>; updateOne(set: any, where: any, options?: {}): Promise<any>; updateAny(set: any, where: any, options?: {}): Promise<any>; updateAll(set: any, where: any, options?: {}): Promise<any>; updateOneRow(set: any, where: any, options: any): Promise<any>; updateAnyRow(set: any, where: any, options: any): Promise<any>; updated(set: any, where: any, result: any, options: any): Promise<any>; updateReload(set: any, where: any, options: any): Promise<any>; delete(where: any, options: any): Promise<any>; validateDelete(where: any, options: any): Promise<{}>; deleted(where: any, result: any): Promise<any>; prepareFetch(where: any, options: any): any; fetchOne(where: any, options?: {}): Promise<any>; fetchAny(where: any, options?: {}): Promise<any>; fetchAll(where: any, options?: {}): Promise<any[]>; fetchOneRecord(where: any, options: any): Promise<any>; fetchAnyRecord(where: any, options: any): Promise<any>; fetchAllRecords(where: any, options: any): Promise<any[]>; oneRow(query: any, ...args: any[]): Promise<any>; anyRow(query: any, ...args: any[]): Promise<any>; allRows(query: any, ...args: any[]): Promise<any>; oneRecord(query: any, ...args: any[]): Promise<any>; anyRecord(query: any, ...args: any[]): Promise<any>; allRecords(query: any, ...args: any[]): Promise<any>; loaded(row: any, options?: {}): any; loadedOne(row: any, options?: {}): any; loadedAny(row: any, options?: {}): any; loadedAll(rows: any, options?: {}): Promise<any[]>; withReloadOption(options?: {}): { reload: boolean; }; withRecordOption(options?: {}): { record: boolean; }; checkColumnNames(names: any): void; checkColumns(data?: {}, options?: {}, cols?: any[], vals?: any[]): {}[]; checkWritableColumns(data: any, options?: {}): {}[]; checkUpdatableColumns(data: any, options?: {}): {}[]; checkWhereColumns(where: any, options: any): {}[]; checkRequiredColumns(data: any): void; select(...args: any[]): any; newRecord(row: any): any; record(row: any): Promise<any>; records(rows: any): Promise<any>; tableFragments(): () => /*elided*/ any; identity(data: any): {}; } export default Table; //# sourceMappingURL=Table.d.ts.map