@grandlinex/bundle-sqlight
Version:
> SQLight support GrandlineX using better-sqlite3
6 lines (5 loc) • 575 B
TypeScript
import { ColumnProps, CoreEntity, EntityConfig, EUpDateProperties } from '@grandlinex/core';
export declare function convertSpecialFields<E>(meta: ColumnProps, clone: any, key: keyof E, params: any[]): void;
export declare function objToTable<E extends CoreEntity>(entity: E | EUpDateProperties<E>, config: EntityConfig<E>, update?: boolean): [(keyof E)[], string[], unknown[]];
export declare function rowToObj<E extends CoreEntity>(config: EntityConfig<E>, row: any): E;
export declare function tableToObj<E extends CoreEntity>(config: EntityConfig<E>, table: any[]): E[];