import type { AnyObject } from "prostgles-types"; import type { DB, Prostgles } from "../Prostgles"; import type { LocalParams, SortItem } from "./DboBuilderTypes"; import type { ViewHandler } from "./ViewHandler/ViewHandler"; import type { ProstglesInitOptions } from "../ProstglesTypes"; import type { TableHandler } from "./TableHandler/TableHandler"; export declare const getErrorAsObject: (rawError: any) => Omit; type GetSerializedClientErrorFromPGErrorArgs = { type: "sql"; localParams: LocalParams | undefined; prostgles: Prostgles; } | { type: "tableMethod"; localParams: LocalParams | undefined; view: ViewHandler | Partial | undefined; prostgles: Prostgles; allowedKeys?: string[]; } | { type: "method"; localParams: LocalParams | undefined; allowedKeys?: string[]; view?: undefined; prostgles: Prostgles; }; export declare function getSerializedClientErrorFromPGError(rawError: any, args: GetSerializedClientErrorFromPGErrorArgs): AnyObject; export declare function getClientErrorFromPGError(rawError: any, args: GetSerializedClientErrorFromPGErrorArgs): Promise; export type PGConstraint = { /** * Constraint type */ contype: "u" | "p" | "c"; /** * Column ordinal positions */ conkey: number[]; /** * Constraint name */ conname: string; /** * Table name */ relname: string; }; export declare const getConstraints: (db: DB, schema: ProstglesInitOptions["schemaFilter"]) => Promise; export declare const prepareOrderByQuery: (items: SortItem[], tableAlias?: string) => string[]; export declare const getCanExecute: (db: DB) => Promise; export declare const withUserRLS: (localParams: LocalParams | undefined, query: string) => string; export {}; //# sourceMappingURL=dboBuilderUtils.d.ts.map