@stacksjs/query-builder 0.61.24 → 0.63.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/dist/index.js +4 -3
- package/dist/index.js.map +10 -0
- package/package.json +6 -6
- package/src/kysely.ts +1 -2
package/dist/index.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/kysely.ts
|
|
3
|
-
import {Kysely, MysqlDialect as qbMysqlDialect, PostgresDialect as qbPostgresql
|
|
3
|
+
import {Kysely, MysqlDialect as qbMysqlDialect, PostgresDialect as qbPostgresql} from "kysely";
|
|
4
4
|
import {createPool} from "mysql2";
|
|
5
5
|
function createMysqlPool(config) {
|
|
6
6
|
return createPool(config);
|
|
7
7
|
}
|
|
8
|
-
var sql = qbSql;
|
|
9
8
|
var QueryBuilder = Kysely;
|
|
10
9
|
var MysqlDialect = qbMysqlDialect;
|
|
11
10
|
var PostgresDialect = qbPostgresql;
|
|
12
11
|
export {
|
|
13
|
-
sql,
|
|
14
12
|
createMysqlPool,
|
|
15
13
|
QueryBuilder,
|
|
16
14
|
PostgresDialect,
|
|
17
15
|
MysqlDialect
|
|
18
16
|
};
|
|
17
|
+
|
|
18
|
+
//# debugId=39E1F92B11072D0064756E2164756E21
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/kysely.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"import { Kysely, MysqlDialect as qbMysqlDialect, PostgresDialect as qbPostgresql } from 'kysely'\nimport type { Pool } from 'mysql2'\nimport { createPool } from 'mysql2'\n\n// import { Pool } from 'pg'\n// import { Cursor as qbCursor } from 'pg-cursor'\n\ninterface MysqlConfig {\n driver?: string\n url?: string\n host?: string\n port?: number\n database?: string\n user?: string\n password?: string\n}\n\n// interface PostgresqlConfig {\n// host?: string\n// database?: string\n// }\n// export const Cursor = qbCursor\n\nexport const QueryBuilder = Kysely\nexport const MysqlDialect = qbMysqlDialect\nexport const PostgresDialect = qbPostgresql\n\n// export function createPostgresPool(config: PostgresqlConfig) {\n// return Pool(config)\n// }\n\nexport function createMysqlPool(config: MysqlConfig): Pool {\n return createPool(config)\n}\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";;AAAA,gCAAiB,mCAAgC;AAEjD;AA6BO,SAAS,eAAe,CAAC,QAA2B;AACzD,SAAO,WAAW,MAAM;AAAA;AATnB,IAAM,eAAe;AACrB,IAAM,eAAe;AACrB,IAAM,kBAAkB;",
|
|
8
|
+
"debugId": "39E1F92B11072D0064756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/query-builder",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.63.0",
|
|
5
5
|
"description": "The Stacks Query Builder integration",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@stacksjs/database": "latest",
|
|
49
49
|
"@stacksjs/types": "latest",
|
|
50
|
-
"kysely": "^0.27.
|
|
50
|
+
"kysely": "^0.27.4"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@stacksjs/database": "latest",
|
|
54
54
|
"@stacksjs/types": "latest",
|
|
55
|
-
"kysely": "^0.27.
|
|
56
|
-
"kysely-bun-worker": "^0.6.
|
|
57
|
-
"mysql2": "^3.
|
|
58
|
-
"pg": "^8.
|
|
55
|
+
"kysely": "^0.27.4",
|
|
56
|
+
"kysely-bun-worker": "^0.6.2",
|
|
57
|
+
"mysql2": "^3.11.0",
|
|
58
|
+
"pg": "^8.12.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@stacksjs/development": "latest",
|
package/src/kysely.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Kysely, MysqlDialect as qbMysqlDialect, PostgresDialect as qbPostgresql
|
|
1
|
+
import { Kysely, MysqlDialect as qbMysqlDialect, PostgresDialect as qbPostgresql } from 'kysely'
|
|
2
2
|
import type { Pool } from 'mysql2'
|
|
3
3
|
import { createPool } from 'mysql2'
|
|
4
4
|
|
|
@@ -21,7 +21,6 @@ interface MysqlConfig {
|
|
|
21
21
|
// }
|
|
22
22
|
// export const Cursor = qbCursor
|
|
23
23
|
|
|
24
|
-
export const sql = qbSql
|
|
25
24
|
export const QueryBuilder = Kysely
|
|
26
25
|
export const MysqlDialect = qbMysqlDialect
|
|
27
26
|
export const PostgresDialect = qbPostgresql
|