import type { QueryUpdateResult, RawRow } from '../type/index.js'; export declare function flatObject(obj: E, pre?: string): E; export declare function unflatObjects(objects: RawRow[]): T[]; export declare function obtainAttrsPaths(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; /** * Extract INSERT result IDs from raw database rows. * * UQL's SQL dialect always aliases the entity's ID column to `id` in RETURNING clauses, * so the result rows always contain an `id` property regardless of the entity's @Id() key name. */ export declare function extractInsertResult(rows: RawRow[], changes?: number): QueryUpdateResult; //# sourceMappingURL=sql.util.d.ts.map