UNPKG

nukak

Version:

flexible and efficient ORM, with declarative JSON syntax and smart type-safety

14 lines (13 loc) 639 B
export declare function flatObject<E>(obj: E, pre?: string): E; export declare function unflatObjects<T>(objects: T[]): T[]; export declare function obtainAttrsPaths<T>(row: T): { [k: string]: string[]; }; /** * Escape a SQL identifier (table name, column name, etc.) * @param val the identifier to escape * @param escapeIdChar the escape character to use (e.g. ` or ") * @param forbidQualified whether to forbid qualified identifiers (containing dots) * @param addDot whether to add a dot suffix */ export declare function escapeSqlId(val: string, escapeIdChar?: '`' | '"', forbidQualified?: boolean, addDot?: boolean): string;