@pi-r/oracle 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/pool.d.ts +8 -8
- package/package.json +2 -2
- package/types/index.d.ts +20 -20
package/client/pool.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { DbPoolConstructor } from '@e-mc/types/lib/db';
|
|
2
|
-
|
|
3
|
-
import type { DbPoolCredential, OracleDataSource } from '../types';
|
|
4
|
-
|
|
5
|
-
import type { Pool } from 'oracledb';
|
|
6
|
-
|
|
7
|
-
declare const OraclePool: DbPoolConstructor<OracleDataSource, Pool, unknown, DbPoolCredential>;
|
|
8
|
-
|
|
1
|
+
import type { DbPoolConstructor } from '@e-mc/types/lib/db';
|
|
2
|
+
|
|
3
|
+
import type { DbPoolCredential, OracleDataSource } from '../types';
|
|
4
|
+
|
|
5
|
+
import type { Pool } from 'oracledb';
|
|
6
|
+
|
|
7
|
+
declare const OraclePool: DbPoolConstructor<OracleDataSource, Pool, unknown, DbPoolCredential>;
|
|
8
|
+
|
|
9
9
|
export = OraclePool;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/oracle",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Oracle client driver for E-mc.",
|
|
5
5
|
"main": "client/index.js",
|
|
6
6
|
"types": "client/index.d.ts",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@e-mc/db": "^0.11.2",
|
|
24
24
|
"@e-mc/types": "^0.11.2",
|
|
25
|
-
"oracledb": "^6.
|
|
25
|
+
"oracledb": "^6.8.0"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { DbDataSource } from '@e-mc/types/lib/squared';
|
|
2
|
-
|
|
3
|
-
import type { IdentifierAction } from '@e-mc/types/lib/core';
|
|
4
|
-
import type { ExecuteAction, ServerAuth } from '@e-mc/types/lib/db';
|
|
5
|
-
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import type { BindParameters, ConnectionAttributes, ExecuteOptions, InitialiseOptions, PoolAttributes } from 'oracledb';
|
|
8
|
-
|
|
9
|
-
export const enum POOL_STATUS {
|
|
10
|
-
CLOSED = 6002,
|
|
11
|
-
DRAINING = 6001,
|
|
12
|
-
OPEN = 6000,
|
|
13
|
-
RECONFIGURING = 6003
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface OracleDataSource extends DbDataSource<string, ExecuteOptions, unknown, OracleCredential, string>, ExecuteAction<BindParameters> {
|
|
17
|
-
source: "oracle";
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type OracleCredential = ConnectionAttributes & PoolAttributes & InitialiseOptions & ServerAuth;
|
|
1
|
+
import type { DbDataSource } from '@e-mc/types/lib/squared';
|
|
2
|
+
|
|
3
|
+
import type { IdentifierAction } from '@e-mc/types/lib/core';
|
|
4
|
+
import type { ExecuteAction, ServerAuth } from '@e-mc/types/lib/db';
|
|
5
|
+
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import type { BindParameters, ConnectionAttributes, ExecuteOptions, InitialiseOptions, PoolAttributes } from 'oracledb';
|
|
8
|
+
|
|
9
|
+
export const enum POOL_STATUS {
|
|
10
|
+
CLOSED = 6002,
|
|
11
|
+
DRAINING = 6001,
|
|
12
|
+
OPEN = 6000,
|
|
13
|
+
RECONFIGURING = 6003
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface OracleDataSource extends DbDataSource<string, ExecuteOptions, unknown, OracleCredential, string>, ExecuteAction<BindParameters> {
|
|
17
|
+
source: "oracle";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type OracleCredential = ConnectionAttributes & PoolAttributes & InitialiseOptions & ServerAuth;
|
|
21
21
|
export type DbPoolCredential = PoolAttributes & IdentifierAction;
|