mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
[pg] Add the error parameter to Client.release
Client.release accepts an optional error parameter to destroy the client instead of returning it to the pool in case of failure.
This commit is contained in:
committed by
GitHub
parent
b00804fc5e
commit
63a4b24ee1
Vendored
+1
-1
@@ -87,7 +87,7 @@ export declare class Client extends events.EventEmitter {
|
||||
|
||||
connect(callback?: (err: Error) => void): void;
|
||||
end(callback?: (err: Error) => void): void;
|
||||
release(): void;
|
||||
release(err?: Error): void;
|
||||
|
||||
query(queryStream: QueryConfig & stream.Readable): stream.Readable;
|
||||
query(queryTextOrConfig: string | QueryConfig): Promise<QueryResult>;
|
||||
|
||||
Reference in New Issue
Block a user