@cheetah.js/orm
Version:
A simple ORM for Cheetah.js
15 lines (14 loc) • 680 B
TypeScript
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;
}