mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[pg] Add Client.escapeIdentifier() and Client.escapeLiteral()
See: https://github.com/brianc/node-postgres/blob/master/lib/client.js#L306 https://github.com/brianc/node-postgres/blob/master/lib/client.js#L324
This commit is contained in:
parent
2673835592
commit
6dbdffc8e7
3
types/pg/index.d.ts
vendored
3
types/pg/index.d.ts
vendored
@ -115,6 +115,9 @@ export class Client extends events.EventEmitter {
|
||||
pauseDrain(): void;
|
||||
resumeDrain(): void;
|
||||
|
||||
escapeIdentifier(str: string): string;
|
||||
escapeLiteral(str: string): string;
|
||||
|
||||
on(event: "drain", listener: () => void): this;
|
||||
on(event: "error" | "notice", listener: (err: Error) => void): this;
|
||||
on(event: "notification", listener: (message: Notification) => void): this;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user