@stacksjs/query-builder 0.64.6 → 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/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './kysely'
package/src/kysely.ts DELETED
@@ -1,34 +0,0 @@
1
- import { Kysely, MysqlDialect as qbMysqlDialect, PostgresDialect as qbPostgresql } from 'kysely'
2
- import type { Pool } from 'mysql2'
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