@e-mc/db 0.10.2 → 0.10.4

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/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- * [View Source](https://www.unpkg.com/@e-mc/types@0.10.2/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.10.4/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { DbDataSource } from "./squared";
@@ -204,11 +204,11 @@ const [rows1, rows2] = await instance.executeBatchQuery([
204
204
 
205
205
  ## References
206
206
 
207
- - https://www.unpkg.com/@e-mc/types@0.10.2/lib/squared.d.ts
208
- - https://www.unpkg.com/@e-mc/types@0.10.2/lib/core.d.ts
209
- - https://www.unpkg.com/@e-mc/types@0.10.2/lib/db.d.ts
210
- - https://www.unpkg.com/@e-mc/types@0.10.2/lib/http.d.ts
211
- - https://www.unpkg.com/@e-mc/types@0.10.2/lib/settings.d.ts
207
+ - https://www.unpkg.com/@e-mc/types@0.10.4/lib/squared.d.ts
208
+ - https://www.unpkg.com/@e-mc/types@0.10.4/lib/core.d.ts
209
+ - https://www.unpkg.com/@e-mc/types@0.10.4/lib/db.d.ts
210
+ - https://www.unpkg.com/@e-mc/types@0.10.4/lib/http.d.ts
211
+ - https://www.unpkg.com/@e-mc/types@0.10.4/lib/settings.d.ts
212
212
 
213
213
  * https://www.npmjs.com/package/@types/node
214
214
 
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { DbConstructor } from '../types/lib';
2
-
3
- declare const Db: DbConstructor;
4
-
1
+ import type { DbConstructor } from '@e-mc/types/lib';
2
+
3
+ declare const Db: DbConstructor;
4
+
5
5
  export = Db;
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  const path = require("path");
3
+ const types_1 = require("@e-mc/types");
3
4
  const core_1 = require("@e-mc/core");
4
5
  const request_1 = require("@e-mc/request");
5
- const types_1 = require("@e-mc/types");
6
6
  const util_1 = require("@e-mc/db/util");
7
7
  const DB_CLIENT = new Map();
8
8
  const POOL_CONFIG = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/db",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "description": "DB modules for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -17,11 +17,11 @@
17
17
  "squared-functions"
18
18
  ],
19
19
  "author": "An Pham <anpham6@gmail.com>",
20
- "license": "BSD 3-Clause",
20
+ "license": "BSD-3-Clause",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/core": "0.10.2",
24
- "@e-mc/request": "0.10.2",
25
- "@e-mc/types": "0.10.2"
23
+ "@e-mc/core": "0.10.4",
24
+ "@e-mc/request": "0.10.4",
25
+ "@e-mc/types": "0.10.4"
26
26
  }
27
27
  }
package/pool.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { DbPoolConstructor } from '../types/lib/db';
2
-
3
- declare const DbPool: DbPoolConstructor;
4
-
1
+ import type { DbPoolConstructor } from '@e-mc/types/lib/db';
2
+
3
+ declare const DbPool: DbPoolConstructor;
4
+
5
5
  export = DbPool;
package/types/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import type { DbDataSource } from '../../types/lib/squared';
2
-
3
- import type { IDb } from '../../types/lib';
4
- import type { BatchQueryResult, ExecuteBatchQueryOptions, ExecuteQueryOptions, QueryResult } from '../../types/lib/db';
5
-
6
- export interface IDbSourceClient<T extends DbDataSource = DbDataSource> {
7
- DB_SOURCE_NAME: string;
8
- DB_SOURCE_CLIENT: boolean;
9
- DB_SOURCE_TYPE: number;
10
- setCredential(this: IDb, item: T): Promise<void>;
11
- executeQuery(this: IDb, item: T, options?: ExecuteQueryOptions | string): Promise<QueryResult>;
12
- executeBatchQuery(this: IDb, batch: T[], options?: ExecuteBatchQueryOptions | string, outResult?: BatchQueryResult): Promise<BatchQueryResult>;
13
- checkTimeout?(this: IDbSourceClient, value: number, limit?: number): Promise<number>;
1
+ import type { DbDataSource } from '@e-mc/types/lib/squared';
2
+
3
+ import type { IDb } from '@e-mc/types/lib';
4
+ import type { BatchQueryResult, ExecuteBatchQueryOptions, ExecuteQueryOptions, QueryResult } from '@e-mc/types/lib/db';
5
+
6
+ export interface IDbSourceClient<T extends DbDataSource = DbDataSource> {
7
+ DB_SOURCE_NAME: string;
8
+ DB_SOURCE_CLIENT: boolean;
9
+ DB_SOURCE_TYPE: number;
10
+ setCredential(this: IDb, item: T): Promise<void>;
11
+ executeQuery(this: IDb, item: T, options?: ExecuteQueryOptions | string): Promise<QueryResult>;
12
+ executeBatchQuery(this: IDb, batch: T[], options?: ExecuteBatchQueryOptions | string, outResult?: BatchQueryResult): Promise<BatchQueryResult>;
13
+ checkTimeout?(this: IDbSourceClient, value: number, limit?: number): Promise<number>;
14
14
  }
package/util.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { DbDataSource } from '../types/lib/squared';
1
+ import type { DbDataSource } from '@e-mc/types/lib/squared';
2
2
 
3
- import type { DbConnection, SQL_COMMAND, ServerAuth } from '../types/lib/db';
4
- import type { AuthValue } from '../types/lib/http';
3
+ import type { DbConnection, SQL_COMMAND, ServerAuth } from '@e-mc/types/lib/db';
4
+ import type { AuthValue } from '@e-mc/types/lib/http';
5
5
 
6
6
  declare namespace util {
7
7
  const SQL_COMMAND: SQL_COMMAND;