@sqb/oracle 4.10.0 → 4.10.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sqb/oracle",
3
3
  "description": "SQB serialization extension for Oracle database",
4
- "version": "4.10.0",
4
+ "version": "4.10.2",
5
5
  "author": "Panates",
6
6
  "contributors": [
7
7
  "Eray Hanoglu <e.hanoglu@panates.com>",
@@ -33,9 +33,9 @@
33
33
  "clean:cover": "rimraf ../../coverage/oracle"
34
34
  },
35
35
  "peerDependencies": {
36
- "@sqb/builder": "^4.10.0",
37
- "@sqb/connect": "^4.10.0",
38
- "@sqb/oracle-dialect": "^4.10.0",
36
+ "@sqb/builder": "^4.10.2",
37
+ "@sqb/connect": "^4.10.2",
38
+ "@sqb/oracle-dialect": "^4.10.2",
39
39
  "oracledb": ">= 5.0.0"
40
40
  },
41
41
  "devDependencies": {
@@ -50,6 +50,7 @@
50
50
  "bin/",
51
51
  "cjs/",
52
52
  "esm/",
53
+ "types/",
53
54
  "LICENSE",
54
55
  "README.md"
55
56
  ],
@@ -0,0 +1,3 @@
1
+ import { ConnectionAttributes } from 'oracledb';
2
+ import { ClientConfiguration } from '@sqb/connect';
3
+ export declare function clientConfigurationToDriver(config: ClientConfiguration): ConnectionAttributes;
@@ -0,0 +1 @@
1
+ import '@sqb/oracle-dialect';
@@ -0,0 +1,11 @@
1
+ import '@sqb/oracle-dialect';
2
+ import { Adapter, ClientConfiguration } from '@sqb/connect';
3
+ export declare class OraAdapter implements Adapter {
4
+ driver: string;
5
+ dialect: string;
6
+ features: {
7
+ cursor: boolean;
8
+ schema: boolean;
9
+ };
10
+ connect(config: ClientConfiguration): Promise<Adapter.Connection>;
11
+ }
@@ -0,0 +1,22 @@
1
+ import oracledb from 'oracledb';
2
+ import { Adapter, QueryRequest } from '@sqb/connect';
3
+ export declare const dataTypeNames: {
4
+ [x: number]: string;
5
+ };
6
+ export declare class OraConnection implements Adapter.Connection {
7
+ sessionId: string;
8
+ private intlcon?;
9
+ serverVersion: string;
10
+ private _inTransaction;
11
+ constructor(conn: oracledb.Connection, sessionId: string);
12
+ close(): Promise<void>;
13
+ reset(): Promise<void>;
14
+ startTransaction(): Promise<void>;
15
+ commit(): Promise<void>;
16
+ rollback(): Promise<void>;
17
+ test(): Promise<void>;
18
+ getSchema(): Promise<string>;
19
+ setSchema(schema: string): Promise<void>;
20
+ onGenerateQuery(prepared: QueryRequest): void;
21
+ execute(request: QueryRequest): Promise<Adapter.Response>;
22
+ }
@@ -0,0 +1,17 @@
1
+ import { ResultSet } from 'oracledb';
2
+ import { Adapter, RowType } from '@sqb/connect';
3
+ export declare class OraCursor implements Adapter.Cursor {
4
+ private _resultSet?;
5
+ private readonly _rowType;
6
+ private readonly _rowNumberIdx?;
7
+ private readonly _rowNumberName?;
8
+ constructor(resultSet: ResultSet<any>, opts: {
9
+ rowType: RowType;
10
+ rowNumberIdx?: number;
11
+ rowNumberName?: string;
12
+ });
13
+ get isClosed(): boolean;
14
+ get rowType(): RowType;
15
+ close(): Promise<void>;
16
+ fetch(nRows: number): Promise<any[] | undefined>;
17
+ }