Merge pull request #19774 from andrew8er/feature/pg_add_escape_methods

[pg] Add Client.escapeIdentifier() and Client.escapeLiteral()
This commit is contained in:
Arthur Ozga
2017-09-15 10:15:42 -07:00
committed by GitHub

3
types/pg/index.d.ts vendored
View File

@@ -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;