@sqb/connect 4.21.0 → 4.22.0
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/adapter.d.ts +1 -1
- package/client/extensions.d.ts +2 -2
- package/client/helpers.d.ts +2 -2
- package/client/sqb-client.d.ts +1 -1
- package/package.json +6 -6
package/client/adapter.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { classes } from '@sqb/builder';
|
|
2
2
|
import { Maybe } from 'ts-gems';
|
|
3
|
-
import { ClientConfiguration, DataType, QueryRequest, RowType } from './types.js';
|
|
3
|
+
import { type ClientConfiguration, DataType, type QueryRequest, type RowType } from './types.js';
|
|
4
4
|
export interface Adapter {
|
|
5
5
|
driver: string;
|
|
6
6
|
dialect: string;
|
package/client/extensions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SerializerExtension } from '@sqb/builder';
|
|
2
|
-
import { Adapter } from './adapter.js';
|
|
1
|
+
import type { SerializerExtension } from '@sqb/builder';
|
|
2
|
+
import type { Adapter } from './adapter.js';
|
|
3
3
|
export declare class AdapterRegistry {
|
|
4
4
|
protected static adapters: Adapter[];
|
|
5
5
|
static get size(): number;
|
package/client/helpers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Maybe } from 'ts-gems';
|
|
2
|
-
import { Adapter } from './adapter.js';
|
|
2
|
+
import type { Adapter } from './adapter.js';
|
|
3
3
|
import { FieldInfoMap } from './field-info-map.js';
|
|
4
|
-
import { ArrayRowset, FieldNaming, ObjectRowset, QueryRequest } from './types.js';
|
|
4
|
+
import type { ArrayRowset, FieldNaming, ObjectRowset, QueryRequest } from './types.js';
|
|
5
5
|
export declare function applyNamingStrategy(value: string, namingStrategy?: FieldNaming): Maybe<string>;
|
|
6
6
|
export declare function wrapAdapterFields(oldFields: Adapter.Field[], fieldNaming?: FieldNaming): FieldInfoMap;
|
|
7
7
|
export declare function normalizeRowsToObjectRows(fields: FieldInfoMap, rowType: 'array' | 'object', oldRows: ObjectRowset | ArrayRowset, options?: Pick<QueryRequest, 'ignoreNulls' | 'transform'>): Record<string, any>[];
|
package/client/sqb-client.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Pool as LightningPool } from 'lightning-pool';
|
|
|
3
3
|
import { Maybe, Type } from 'ts-gems';
|
|
4
4
|
import { Repository } from '../orm/repository.class.js';
|
|
5
5
|
import { SqbConnection } from './sqb-connection.js';
|
|
6
|
-
import { ClientConfiguration, ClientDefaults, ConnectionOptions, QueryExecuteOptions, QueryRequest, QueryResult, TransactionFunction } from './types.js';
|
|
6
|
+
import type { ClientConfiguration, ClientDefaults, ConnectionOptions, QueryExecuteOptions, QueryRequest, QueryResult, TransactionFunction } from './types.js';
|
|
7
7
|
declare const inspect: unique symbol;
|
|
8
8
|
interface SqbClientEvents {
|
|
9
9
|
execute: (request: QueryRequest) => void;
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqb/connect",
|
|
3
3
|
"description": "Multi-dialect database connection framework written with TypeScript",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.22.0",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jsopen/objects": "^2.
|
|
8
|
+
"@jsopen/objects": "^2.1.1",
|
|
9
9
|
"debug": "^4.4.3",
|
|
10
10
|
"doublylinked": "^2.5.6",
|
|
11
|
-
"fast-tokenizer": "^1.
|
|
11
|
+
"fast-tokenizer": "^1.9.0",
|
|
12
12
|
"lightning-pool": "^4.12.0",
|
|
13
|
-
"lodash": "^4.17.
|
|
13
|
+
"lodash": "^4.17.23",
|
|
14
14
|
"power-tasks": "^1.11.1",
|
|
15
15
|
"putil-isplainobject": "^1.1.5",
|
|
16
16
|
"putil-merge": "^3.13.0",
|
|
17
17
|
"putil-promisify": "^1.10.1",
|
|
18
|
-
"putil-varhelpers": "^1.
|
|
18
|
+
"putil-varhelpers": "^1.7.0",
|
|
19
19
|
"strict-typed-events": "^2.8.0",
|
|
20
20
|
"ts-gems": "^3.11.3",
|
|
21
21
|
"tslib": "^2.8.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@sqb/builder": "^4.
|
|
24
|
+
"@sqb/builder": "^4.22.0",
|
|
25
25
|
"reflect-metadata": "^0.2.2"
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|