UNPKG

@hirosystems/api-toolkit

Version:
15 lines (14 loc) 536 B
export declare const PG_TYPE_MAPPINGS: { bytea: { to: number; from: number[]; serialize: (x: any) => string; parse: (x: any) => string; }; }; /** Values will be automatically converted into a `bytea` compatible string before sending to pg. */ export type PgBytea = string | Buffer; /** The `string` type guarantees the value will fit into the `numeric` pg type. */ export type PgNumeric = string; /** JSON objects will be automatically stringified before insertion. */ export type PgJsonb = any;