postgresql-client
Advanced tools
Comparing version 1.0.3 to 1.0.4
import { SafeEventEmitter } from './SafeEventEmitter'; | ||
import { ConnectionConfiguration, ConnectionState, StatementPrepareOptions, QueryOptions, QueryResult, ScriptExecuteOptions, ScriptResult } from './definitions'; | ||
import { ConnectionConfiguration, ConnectionState, StatementPrepareOptions, QueryOptions, QueryResult, ScriptExecuteOptions, ScriptResult, Maybe } from './definitions'; | ||
import type { Pool } from './Pool'; | ||
@@ -25,2 +25,10 @@ import { PreparedStatement } from './PreparedStatement'; | ||
/** | ||
* Returns processId of current session | ||
*/ | ||
get processID(): Maybe<number>; | ||
/** | ||
* Returns secret key of current session | ||
*/ | ||
get secretKey(): Maybe<number>; | ||
/** | ||
* Connects to the server | ||
@@ -27,0 +35,0 @@ */ |
@@ -48,2 +48,14 @@ "use strict"; | ||
/** | ||
* Returns processId of current session | ||
*/ | ||
get processID() { | ||
return this._intlCon.processID; | ||
} | ||
/** | ||
* Returns secret key of current session | ||
*/ | ||
get secretKey() { | ||
return this._intlCon.secretKey; | ||
} | ||
/** | ||
* Connects to the server | ||
@@ -50,0 +62,0 @@ */ |
import TaskQueue from 'putil-taskqueue'; | ||
import { PgSocket } from './protocol/PgSocket'; | ||
import { SafeEventEmitter } from './SafeEventEmitter'; | ||
import { ConnectionConfiguration, ConnectionState, ScriptExecuteOptions, ScriptResult } from './definitions'; | ||
import { ConnectionConfiguration, ConnectionState, Maybe, ScriptExecuteOptions, ScriptResult } from './definitions'; | ||
export declare class IntlConnection extends SafeEventEmitter { | ||
@@ -16,2 +16,4 @@ protected _refCount: number; | ||
get refCount(): number; | ||
get processID(): Maybe<number>; | ||
get secretKey(): Maybe<number>; | ||
connect(): Promise<void>; | ||
@@ -18,0 +20,0 @@ close(): Promise<void>; |
@@ -40,2 +40,8 @@ "use strict"; | ||
} | ||
get processID() { | ||
return this.socket.processID; | ||
} | ||
get secretKey() { | ||
return this.socket.secretKey; | ||
} | ||
async connect() { | ||
@@ -42,0 +48,0 @@ if (this.socket.state === definitions_1.ConnectionState.READY) |
@@ -18,7 +18,9 @@ /// <reference types="node" /> | ||
private _sessionParameters; | ||
private _saslSession?; | ||
private _processID?; | ||
private _secretKey?; | ||
private _saslSession?; | ||
constructor(options: ConnectionConfiguration); | ||
get state(): ConnectionState; | ||
get processID(): Maybe<number>; | ||
get secretKey(): Maybe<number>; | ||
connect(): void; | ||
@@ -25,0 +27,0 @@ close(): void; |
@@ -33,2 +33,8 @@ "use strict"; | ||
} | ||
get processID() { | ||
return this._processID; | ||
} | ||
get secretKey() { | ||
return this._secretKey; | ||
} | ||
connect() { | ||
@@ -35,0 +41,0 @@ if (this._socket) |
{ | ||
"name": "postgresql-client", | ||
"description": "Professional PostgreSQL client for JavaScript and TypeScript", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"author": "Panates", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -84,3 +84,3 @@ ## postgresql-client | ||
You can report bugs and discuss features on the [GitHub issues](https://github.com/panates/postgresql-client/issues) page | ||
When you open an issue please provide version of NodeJS, PostgreSQL server an | ||
When you open an issue please provide version of NodeJS and PostgreSQL server. | ||
@@ -87,0 +87,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
289929
4455