@stacksjs/query-builder 0.65.0 → 0.67.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 +2 -5
- package/package.json +5 -7
- package/dist/index.js.map +0 -318
- package/src/index.ts +0 -1
- package/src/kysely.ts +0 -34
- package/src/types.ts +0 -0
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './kysely'
|
package/src/kysely.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { Pool } from 'mysql2'
|
|
2
|
-
import { Kysely, MysqlDialect as qbMysqlDialect, PostgresDialect as qbPostgresql } from 'kysely'
|
|
3
|
-
import { createPool } from 'mysql2'
|
|
4
|
-
|
|
5
|
-
// import { Pool } from 'pg'
|
|
6
|
-
// import { Cursor as qbCursor } from 'pg-cursor'
|
|
7
|
-
|
|
8
|
-
interface MysqlConfig {
|
|
9
|
-
driver?: string
|
|
10
|
-
url?: string
|
|
11
|
-
host?: string
|
|
12
|
-
port?: number
|
|
13
|
-
database?: string
|
|
14
|
-
user?: string
|
|
15
|
-
password?: string
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// interface PostgresqlConfig {
|
|
19
|
-
// host?: string
|
|
20
|
-
// database?: string
|
|
21
|
-
// }
|
|
22
|
-
// export const Cursor = qbCursor
|
|
23
|
-
|
|
24
|
-
export const QueryBuilder = Kysely
|
|
25
|
-
export const MysqlDialect = qbMysqlDialect
|
|
26
|
-
export const PostgresDialect = qbPostgresql
|
|
27
|
-
|
|
28
|
-
// export function createPostgresPool(config: PostgresqlConfig) {
|
|
29
|
-
// return Pool(config)
|
|
30
|
-
// }
|
|
31
|
-
|
|
32
|
-
export function createMysqlPool(config: MysqlConfig): Pool {
|
|
33
|
-
return createPool(config)
|
|
34
|
-
}
|
package/src/types.ts
DELETED
|
File without changes
|