@pi-r/mysql 0.9.0 → 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/index.d.ts +10 -10
- package/client/pool.d.ts +8 -8
- package/package.json +4 -4
- package/types/index.d.ts +12 -12
package/client/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { IDb } from '@e-mc/types/lib';
|
|
2
|
-
|
|
3
|
-
import type { IDbSourceClient } from '@e-mc/db/types';
|
|
4
|
-
|
|
5
|
-
import type { MySQLCredential, MySQLDataSource } from '../types';
|
|
6
|
-
|
|
7
|
-
declare const MySQL: IDbSourceClient<MySQLDataSource> & {
|
|
8
|
-
setAuthentication(this: IDb, credential: MySQLCredential): void;
|
|
9
|
-
};
|
|
10
|
-
|
|
1
|
+
import type { IDb } from '@e-mc/types/lib';
|
|
2
|
+
|
|
3
|
+
import type { IDbSourceClient } from '@e-mc/db/types';
|
|
4
|
+
|
|
5
|
+
import type { MySQLCredential, MySQLDataSource } from '../types';
|
|
6
|
+
|
|
7
|
+
declare const MySQL: IDbSourceClient<MySQLDataSource> & {
|
|
8
|
+
setAuthentication(this: IDb, credential: MySQLCredential): void;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
11
|
export = MySQL;
|
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, MySQLDataSource } from '../types';
|
|
4
|
-
|
|
5
|
-
import type { Pool, PoolConnection } from 'mysql2/promise';
|
|
6
|
-
|
|
7
|
-
declare const MySQLPool: DbPoolConstructor<MySQLDataSource, Pool, PoolConnection, DbPoolCredential>;
|
|
8
|
-
|
|
1
|
+
import type { DbPoolConstructor } from '@e-mc/types/lib/db';
|
|
2
|
+
|
|
3
|
+
import type { DbPoolCredential, MySQLDataSource } from '../types';
|
|
4
|
+
|
|
5
|
+
import type { Pool, PoolConnection } from 'mysql2/promise';
|
|
6
|
+
|
|
7
|
+
declare const MySQLPool: DbPoolConstructor<MySQLDataSource, Pool, PoolConnection, DbPoolCredential>;
|
|
8
|
+
|
|
9
9
|
export = MySQLPool;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-r/mysql",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "MySQL client driver for E-mc.",
|
|
5
5
|
"main": "client/index.js",
|
|
6
6
|
"types": "client/index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/pi-r#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/db": "^0.11.
|
|
24
|
-
"@e-mc/types": "^0.11.
|
|
25
|
-
"mysql2": "^3.
|
|
23
|
+
"@e-mc/db": "^0.11.2",
|
|
24
|
+
"@e-mc/types": "^0.11.2",
|
|
25
|
+
"mysql2": "^3.13.0"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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
|
-
import type { PoolOptions, QueryOptions } from 'mysql2/promise';
|
|
7
|
-
|
|
8
|
-
export interface MySQLDataSource<T = unknown> extends DbDataSource<string | QueryOptions, unknown, unknown, MySQLCredential, string>, ExecuteAction<T> {
|
|
9
|
-
source: "mysql";
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type MySQLCredential = PoolOptions & 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
|
+
import type { PoolOptions, QueryOptions } from 'mysql2/promise';
|
|
7
|
+
|
|
8
|
+
export interface MySQLDataSource<T = unknown> extends DbDataSource<string | QueryOptions, unknown, unknown, MySQLCredential, string>, ExecuteAction<T> {
|
|
9
|
+
source: "mysql";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type MySQLCredential = PoolOptions & ServerAuth;
|
|
13
13
|
export type DbPoolCredential = PoolOptions & IdentifierAction;
|