@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
16 lines • 675 B
TypeScript
/**
* PostgreSQL doesn't allow comparison like `WHERE (a, b) = '(1,2)'` - it throws
* "Input of anonymous composite types is not implemented" error. So to compare,
* we have to convert the stringified row representation to ROW() notation
* manually: `WHERE (a, b) = ROW('1', '2')`
*
* Notice that we don't work with ROWs consisting of 1 element; instead, we
* treat them as the element itself. I.e. instead of emitting "(123)" or
* "ROW(123)", we always emit just "123".
*
* - "1" => "1"
* - "(1)" => "1"
* - "(1,2)" => "ROW('1','2')"
*/
export declare function escapeComposite(v: string | null | undefined): string;
//# sourceMappingURL=escapeComposite.d.ts.map