@pgxsinkit/pgwasm
Version:
11 lines • 577 B
TypeScript
/**
* The name Postgres stores for an identifier: a quoted one keeps its case (quotes removed), an
* unquoted one is folded to lower case. Used to key notification listeners the way Postgres names
* the channel.
*/
export declare function toPostgresName(input: string): string;
/** Quote an identifier for SQL: wrap in double quotes, doubling any inside. */
export declare function quoteIdentifier(name: string): string;
/** A random 32-character hex id, for the names of temporary objects. */
export declare function randomId(): string;
//# sourceMappingURL=names.d.ts.map