UNPKG

@odyssoft/tsorm

Version:
23 lines (22 loc) 1.43 kB
import { BetweenType, ColumnOptions, EqualsType, GreaterThanEqualType, GreaterThanType, InType, LessThanEqualType, LessThanType, LikeType, ModelKeys } from './types'; export declare const formatValue: (input: boolean | number | string | null | undefined, keys?: string[]) => number | string; export declare const getIdKey: <T>(keys: ModelKeys<T>) => string; export declare const getInsertKeys: <T>(data: T | T[]) => string[]; export declare const getInsertValues: <T>(data: T | T[], keys: string[]) => string; export declare const mapKey: (key: string, options: ColumnOptions) => string; export declare const operator: <T>(key: string, keys?: string[]) => { $between: ({ max, min }: BetweenType<T>) => string; $equals: (input: EqualsType<T>) => string; $greaterThan: (input: GreaterThanType<T>) => string; $greaterThanEqual: (input: GreaterThanEqualType<T>) => string; $in: (input: InType) => string; $lessThan: (input: LessThanType<T>) => string; $lessThanEqual: (input: LessThanEqualType<T>) => string; $like: (input: LikeType) => string; $notBetween: ({ max, min }: BetweenType<T>) => string; $notEquals: (input: EqualsType<T>) => string; $notIn: (input: InType) => string; $notLike: (input: LikeType) => string; }; export declare const parseOptions: (options: any, keys?: string[]) => string; export declare const parseValue: (key: string, value: any, keys?: string[]) => string;