UNPKG

@cheetah.js/orm

Version:
15 lines (14 loc) 680 B
import { Options } from '../domain/entities'; import { ValueOrInstance } from '../driver/driver.interface'; export declare class ValueProcessor { static processForInsert<T>(values: Partial<{ [K in keyof T]: ValueOrInstance<T[K]>; }>, options: Options): Record<string, any>; static processForUpdate<T>(values: Partial<{ [K in keyof T]: ValueOrInstance<T[K]>; }>, options: Options): Record<string, any>; static getColumnName(propertyKey: string, entity: Options): string; static createInstance(values: any, entity: Function, moment?: 'insert' | 'update' | undefined): any; private static isValueObject; private static isBaseEntity; }