@stacksjs/query-builder 0.70.369 → 0.70.370
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 +6 -5
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare function setConfig(config: QueryBuilderConfig): void;
|
|
|
14
14
|
* below guarantees that ordering structurally; standalone callers must
|
|
15
15
|
* preserve it themselves.
|
|
16
16
|
*/
|
|
17
|
-
export declare function applySqlitePragmas(instance:
|
|
17
|
+
export declare function applySqlitePragmas(instance: SqlitePragmaExecutor): void;
|
|
18
18
|
/**
|
|
19
19
|
* Bootstrap the MODEL-EXECUTOR connection — the raw `bun:sqlite` `Database`
|
|
20
20
|
* that `Model.create()/save()/delete()` (createModel → getExecutor) write
|
|
@@ -58,7 +58,7 @@ export declare function configureOrm(options: Parameters<typeof bunQueryBuilder.
|
|
|
58
58
|
* was lazily (re)created from a config change gets its pragmas without any
|
|
59
59
|
* caller having to know the two-connection topology.
|
|
60
60
|
*/
|
|
61
|
-
export declare function createQueryBuilder<DB extends DatabaseSchema<
|
|
61
|
+
export declare function createQueryBuilder<DB extends DatabaseSchema<Record<string, unknown>> = DatabaseSchema<Record<string, unknown>>>(state?: Parameters<typeof createBunQueryBuilder>[0]): ReturnType<typeof createBunQueryBuilder<DB>>;
|
|
62
62
|
/**
|
|
63
63
|
* Register a model with bun-query-builder when the installed version
|
|
64
64
|
* exposes that hook, or fall back to `defineModel()` for older releases.
|
|
@@ -140,9 +140,10 @@ declare type QueryBuilderConfig = Parameters<typeof setBunQueryBuilderConfig>[0]
|
|
|
140
140
|
/** Vitess topology controls forwarded to bun-query-builder's DDL driver. */
|
|
141
141
|
vitess?: { sharded: boolean }
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
declare type UnsafeReturn<TResult = unknown> = Promise<TResult> & { execute: () => Promise<TResult> }
|
|
144
|
+
declare type SqlitePragmaExecutor = {
|
|
145
|
+
unsafe: (query: string, params?: readonly unknown[]) => UnsafeReturn
|
|
146
|
+
}
|
|
146
147
|
// Re-export everything from bun-query-builder
|
|
147
148
|
export * from 'bun-query-builder';
|
|
148
149
|
export { saveMigrationSnapshot } from 'bun-query-builder';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/query-builder",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.70.
|
|
5
|
+
"version": "0.70.370",
|
|
6
6
|
"description": "The Stacks Query Builder integration",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"prepublishOnly": "bun run build"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@stacksjs/database": "0.70.
|
|
59
|
+
"@stacksjs/database": "0.70.370",
|
|
60
60
|
"better-dx": "^0.2.17",
|
|
61
|
-
"@stacksjs/types": "0.70.
|
|
61
|
+
"@stacksjs/types": "0.70.370"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"bun-query-builder": "^0.2.
|
|
64
|
+
"bun-query-builder": "^0.2.28"
|
|
65
65
|
}
|
|
66
66
|
}
|