@fedify/mysql 2.2.0-dev.869 → 2.2.0-dev.881
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/dist/kv.d.cts +13 -2
- package/dist/kv.d.ts +13 -2
- package/dist/mq.d.cts +13 -2
- package/dist/mq.d.ts +13 -2
- package/package.json +3 -3
package/dist/kv.d.cts
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions } from "@fedify/fedify";
|
|
2
|
-
import { Pool } from "mysql2/promise";
|
|
3
2
|
|
|
4
3
|
//#region src/kv.d.ts
|
|
4
|
+
interface MysqlQueryable {
|
|
5
|
+
query<TRows = unknown>(sql: string, values?: unknown): Promise<[TRows, unknown]>;
|
|
6
|
+
}
|
|
7
|
+
interface MysqlPoolConnection extends MysqlQueryable {
|
|
8
|
+
beginTransaction(): Promise<void>;
|
|
9
|
+
commit(): Promise<void>;
|
|
10
|
+
rollback(): Promise<void>;
|
|
11
|
+
release(): void;
|
|
12
|
+
}
|
|
13
|
+
interface MysqlPool extends MysqlQueryable {
|
|
14
|
+
getConnection(): Promise<MysqlPoolConnection>;
|
|
15
|
+
}
|
|
5
16
|
/**
|
|
6
17
|
* Options for the MySQL key-value store.
|
|
7
18
|
*
|
|
@@ -57,7 +68,7 @@ declare class MysqlKvStore implements KvStore {
|
|
|
57
68
|
* @param options The options for the key-value store.
|
|
58
69
|
* @since 2.1.0
|
|
59
70
|
*/
|
|
60
|
-
constructor(pool:
|
|
71
|
+
constructor(pool: MysqlPool, options?: MysqlKvStoreOptions);
|
|
61
72
|
/**
|
|
62
73
|
* {@inheritDoc KvStore.get}
|
|
63
74
|
* @since 2.1.0
|
package/dist/kv.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions } from "@fedify/fedify";
|
|
3
|
-
import { Pool } from "mysql2/promise";
|
|
4
3
|
|
|
5
4
|
//#region src/kv.d.ts
|
|
5
|
+
interface MysqlQueryable {
|
|
6
|
+
query<TRows = unknown>(sql: string, values?: unknown): Promise<[TRows, unknown]>;
|
|
7
|
+
}
|
|
8
|
+
interface MysqlPoolConnection extends MysqlQueryable {
|
|
9
|
+
beginTransaction(): Promise<void>;
|
|
10
|
+
commit(): Promise<void>;
|
|
11
|
+
rollback(): Promise<void>;
|
|
12
|
+
release(): void;
|
|
13
|
+
}
|
|
14
|
+
interface MysqlPool extends MysqlQueryable {
|
|
15
|
+
getConnection(): Promise<MysqlPoolConnection>;
|
|
16
|
+
}
|
|
6
17
|
/**
|
|
7
18
|
* Options for the MySQL key-value store.
|
|
8
19
|
*
|
|
@@ -58,7 +69,7 @@ declare class MysqlKvStore implements KvStore {
|
|
|
58
69
|
* @param options The options for the key-value store.
|
|
59
70
|
* @since 2.1.0
|
|
60
71
|
*/
|
|
61
|
-
constructor(pool:
|
|
72
|
+
constructor(pool: MysqlPool, options?: MysqlKvStoreOptions);
|
|
62
73
|
/**
|
|
63
74
|
* {@inheritDoc KvStore.get}
|
|
64
75
|
* @since 2.1.0
|
package/dist/mq.d.cts
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions } from "@fedify/fedify";
|
|
2
|
-
import { Pool } from "mysql2/promise";
|
|
3
2
|
|
|
4
3
|
//#region src/mq.d.ts
|
|
4
|
+
interface MysqlQueryable {
|
|
5
|
+
query<TRows = unknown>(sql: string, values?: unknown): Promise<[TRows, unknown]>;
|
|
6
|
+
}
|
|
7
|
+
interface MysqlPoolConnection extends MysqlQueryable {
|
|
8
|
+
beginTransaction(): Promise<void>;
|
|
9
|
+
commit(): Promise<void>;
|
|
10
|
+
rollback(): Promise<void>;
|
|
11
|
+
release(): void;
|
|
12
|
+
}
|
|
13
|
+
interface MysqlPool extends MysqlQueryable {
|
|
14
|
+
getConnection(): Promise<MysqlPoolConnection>;
|
|
15
|
+
}
|
|
5
16
|
/**
|
|
6
17
|
* Options for the MySQL message queue.
|
|
7
18
|
*
|
|
@@ -90,7 +101,7 @@ declare class MysqlMessageQueue implements MessageQueue {
|
|
|
90
101
|
* @param options Options for the message queue.
|
|
91
102
|
* @since 2.1.0
|
|
92
103
|
*/
|
|
93
|
-
constructor(pool:
|
|
104
|
+
constructor(pool: MysqlPool, options?: MysqlMessageQueueOptions);
|
|
94
105
|
/**
|
|
95
106
|
* {@inheritDoc MessageQueue.enqueue}
|
|
96
107
|
* @since 2.1.0
|
package/dist/mq.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions } from "@fedify/fedify";
|
|
3
|
-
import { Pool } from "mysql2/promise";
|
|
4
3
|
|
|
5
4
|
//#region src/mq.d.ts
|
|
5
|
+
interface MysqlQueryable {
|
|
6
|
+
query<TRows = unknown>(sql: string, values?: unknown): Promise<[TRows, unknown]>;
|
|
7
|
+
}
|
|
8
|
+
interface MysqlPoolConnection extends MysqlQueryable {
|
|
9
|
+
beginTransaction(): Promise<void>;
|
|
10
|
+
commit(): Promise<void>;
|
|
11
|
+
rollback(): Promise<void>;
|
|
12
|
+
release(): void;
|
|
13
|
+
}
|
|
14
|
+
interface MysqlPool extends MysqlQueryable {
|
|
15
|
+
getConnection(): Promise<MysqlPoolConnection>;
|
|
16
|
+
}
|
|
6
17
|
/**
|
|
7
18
|
* Options for the MySQL message queue.
|
|
8
19
|
*
|
|
@@ -91,7 +102,7 @@ declare class MysqlMessageQueue implements MessageQueue {
|
|
|
91
102
|
* @param options Options for the message queue.
|
|
92
103
|
* @since 2.1.0
|
|
93
104
|
*/
|
|
94
|
-
constructor(pool:
|
|
105
|
+
constructor(pool: MysqlPool, options?: MysqlMessageQueueOptions);
|
|
95
106
|
/**
|
|
96
107
|
* {@inheritDoc MessageQueue.enqueue}
|
|
97
108
|
* @since 2.1.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/mysql",
|
|
3
|
-
"version": "2.2.0-dev.
|
|
3
|
+
"version": "2.2.0-dev.881+ee345c72",
|
|
4
4
|
"description": "MySQL/MariaDB drivers for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fedify",
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"mysql2": "^3.18.0",
|
|
78
|
-
"@fedify/fedify": "^2.2.0-dev.
|
|
78
|
+
"@fedify/fedify": "^2.2.0-dev.881+ee345c72"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"tsdown": "^0.21.6",
|
|
82
82
|
"typescript": "^5.9.2",
|
|
83
83
|
"@fedify/fixture": "^2.0.0",
|
|
84
|
-
"@fedify/testing": "^2.2.0-dev.
|
|
84
|
+
"@fedify/testing": "^2.2.0-dev.881+ee345c72"
|
|
85
85
|
},
|
|
86
86
|
"scripts": {
|
|
87
87
|
"build:self": "tsdown",
|