@stacksjs/query-builder 0.56.35 → 0.57.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/dist/index.d.ts +1 -20
- package/dist/index.mjs +1 -12
- package/dist/kysely.d.ts +17 -0
- package/dist/kysely.mjs +9 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as kysely from 'kysely';
|
|
3
|
-
import { Kysely, MysqlDialect as MysqlDialect$1, PostgresDialect as PostgresDialect$1 } from 'kysely';
|
|
4
|
-
|
|
5
|
-
interface MysqlConfig {
|
|
6
|
-
driver?: string;
|
|
7
|
-
url?: string;
|
|
8
|
-
host?: string;
|
|
9
|
-
port?: number;
|
|
10
|
-
database?: string;
|
|
11
|
-
user?: string;
|
|
12
|
-
password?: string;
|
|
13
|
-
}
|
|
14
|
-
declare const sql: kysely.Sql;
|
|
15
|
-
declare const QueryBuilder: typeof Kysely;
|
|
16
|
-
declare const MysqlDialect: typeof MysqlDialect$1;
|
|
17
|
-
declare const PostgresDialect: typeof PostgresDialect$1;
|
|
18
|
-
declare function createMysqlPool(config: MysqlConfig): mysql2_typings_mysql_lib_Pool.Pool;
|
|
19
|
-
|
|
20
|
-
export { MysqlDialect, PostgresDialect, QueryBuilder, createMysqlPool, sql };
|
|
1
|
+
export * from './kysely';
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { createPool } from 'mysql2';
|
|
3
|
-
|
|
4
|
-
const sql = sql$1;
|
|
5
|
-
const QueryBuilder = Kysely;
|
|
6
|
-
const MysqlDialect = MysqlDialect$1;
|
|
7
|
-
const PostgresDialect = PostgresDialect$1;
|
|
8
|
-
function createMysqlPool(config) {
|
|
9
|
-
return createPool(config);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { MysqlDialect, PostgresDialect, QueryBuilder, createMysqlPool, sql };
|
|
1
|
+
export * from "./kysely.mjs";
|
package/dist/kysely.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Kysely, MysqlDialect as qbMysqlDialect, PostgresDialect as qbPostgresql } from 'kysely';
|
|
2
|
+
import type { Pool } from 'mysql2';
|
|
3
|
+
interface MysqlConfig {
|
|
4
|
+
driver?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
host?: string;
|
|
7
|
+
port?: number;
|
|
8
|
+
database?: string;
|
|
9
|
+
user?: string;
|
|
10
|
+
password?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const sql: import("kysely").Sql;
|
|
13
|
+
export declare const QueryBuilder: typeof Kysely;
|
|
14
|
+
export declare const MysqlDialect: typeof qbMysqlDialect;
|
|
15
|
+
export declare const PostgresDialect: typeof qbPostgresql;
|
|
16
|
+
export declare function createMysqlPool(config: MysqlConfig): Pool;
|
|
17
|
+
export {};
|
package/dist/kysely.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Kysely, MysqlDialect as qbMysqlDialect, PostgresDialect as qbPostgresql, sql as qbSql } from "kysely";
|
|
2
|
+
import { createPool } from "mysql2";
|
|
3
|
+
export const sql = qbSql;
|
|
4
|
+
export const QueryBuilder = Kysely;
|
|
5
|
+
export const MysqlDialect = qbMysqlDialect;
|
|
6
|
+
export const PostgresDialect = qbPostgresql;
|
|
7
|
+
export function createMysqlPool(config) {
|
|
8
|
+
return createPool(config);
|
|
9
|
+
}
|
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.57.2",
|
|
5
5
|
"packageManager": "pnpm@8.6.5",
|
|
6
6
|
"description": "The Stacks Query Builder integration",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"kysely": "^0.25.0",
|
|
40
40
|
"mysql2": "^3.4.2",
|
|
41
41
|
"pg": "^8.11.1",
|
|
42
|
-
"@stacksjs/types": "0.
|
|
42
|
+
"@stacksjs/types": "0.57.2"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"pg-cursor": "^2.10.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@stacksjs/development": "0.
|
|
48
|
+
"@stacksjs/development": "0.57.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "unbuild",
|