joist-driver-bun-pg 2.5.0-next.2 → 2.5.0-next.20
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/build/BunPgDriver.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let bun = require("bun");
|
|
3
3
|
let joist_core = require("joist-core");
|
|
4
|
-
|
|
4
|
+
// src/BunPgDriver.ts
|
|
5
5
|
const { getRuntimeConfig, cleanSql, generateOps } = joist_core.driverApi;
|
|
6
6
|
/** Incomplete Bun SQL driver; raw-query execution is not implemented. */
|
|
7
7
|
var BunPgDriver = class {
|
|
@@ -90,7 +90,6 @@ function convertToSql(sql, query, bindings) {
|
|
|
90
90
|
if (fragments.length - 1 !== bindings.length) throw new Error(`Mismatch between placeholders (${fragments.length - 1}) and bindings (${bindings.length})`);
|
|
91
91
|
return sql(Object.assign(fragments, { raw: fragments }), ...bindings);
|
|
92
92
|
}
|
|
93
|
-
//#endregion
|
|
94
93
|
exports.BunPgDriver = BunPgDriver;
|
|
95
94
|
|
|
96
95
|
//# sourceMappingURL=BunPgDriver.cjs.map
|
package/build/BunPgDriver.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SQL, TransactionSQL } from "bun";
|
|
2
2
|
import { Driver, DriverQueryResult, EntityManager, JoinRowTodo, ParsedFindQuery, Todo } from "joist-core";
|
|
3
|
-
//#region src/BunPgDriver.d.ts
|
|
4
3
|
/** Incomplete Bun SQL driver; raw-query execution is not implemented. */
|
|
5
4
|
export declare class BunPgDriver implements Driver<TransactionSQL> {
|
|
6
5
|
#private;
|
|
@@ -15,5 +14,4 @@ export declare class BunPgDriver implements Driver<TransactionSQL> {
|
|
|
15
14
|
flush(em: EntityManager, todos: Record<string, Todo>, joinRows: Record<string, JoinRowTodo>): Promise<void>;
|
|
16
15
|
get defaultPlugins(): {};
|
|
17
16
|
}
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=BunPgDriver.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunPgDriver.d.cts","names":[],"sources":["../src/BunPgDriver.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BunPgDriver.d.cts","names":[],"sources":["../src/BunPgDriver.ts"],"mappings":";;;qBA4Ba,uBAAuB,OAAO;;EAIzC,YAAY,OAAM;EAKlB,YACE,IAAI,eACJ,QAAQ,iBACR;IAAY;IAAgB;MAC3B;EAIH,aAAa,IAAI,eAAe,aAAa,kBAAkB,QAAQ;EAIjE,YAAY,GAAG,IAAI,eAAe,KAAK,KAAK,mBAAmB,QAAQ,KAAK,QAAQ;EAsB1F,aAAa,IAAI,eAAe,OAAO,eAAe,QAAQ;EAIxD,MAAM,IAAI,eAAe,OAAO,eAAe,OAAO,UAAU,eAAe,eAAe;MAahG"}
|
package/build/BunPgDriver.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SQL, TransactionSQL } from "bun";
|
|
2
2
|
import { Driver, DriverQueryResult, EntityManager, JoinRowTodo, ParsedFindQuery, Todo } from "joist-core";
|
|
3
|
-
//#region src/BunPgDriver.d.ts
|
|
4
3
|
/** Incomplete Bun SQL driver; raw-query execution is not implemented. */
|
|
5
4
|
export declare class BunPgDriver implements Driver<TransactionSQL> {
|
|
6
5
|
#private;
|
|
@@ -15,5 +14,4 @@ export declare class BunPgDriver implements Driver<TransactionSQL> {
|
|
|
15
14
|
flush(em: EntityManager, todos: Record<string, Todo>, joinRows: Record<string, JoinRowTodo>): Promise<void>;
|
|
16
15
|
get defaultPlugins(): {};
|
|
17
16
|
}
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=BunPgDriver.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunPgDriver.d.mts","names":[],"sources":["../src/BunPgDriver.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BunPgDriver.d.mts","names":[],"sources":["../src/BunPgDriver.ts"],"mappings":";;;qBA4Ba,uBAAuB,OAAO;;EAIzC,YAAY,OAAM;EAKlB,YACE,IAAI,eACJ,QAAQ,iBACR;IAAY;IAAgB;MAC3B;EAIH,aAAa,IAAI,eAAe,aAAa,kBAAkB,QAAQ;EAIjE,YAAY,GAAG,IAAI,eAAe,KAAK,KAAK,mBAAmB,QAAQ,KAAK,QAAQ;EAsB1F,aAAa,IAAI,eAAe,OAAO,eAAe,QAAQ;EAIxD,MAAM,IAAI,eAAe,OAAO,eAAe,OAAO,UAAU,eAAe,eAAe;MAahG"}
|
package/build/BunPgDriver.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { sql } from "bun";
|
|
2
2
|
import { SequenceIdAssigner, buildCteSql, buildUnnestCte, driverAfterBegin, driverAfterCommit, driverApi, driverBeforeBegin, driverBeforeCommit, fail, kq, kqDot } from "joist-core";
|
|
3
|
-
|
|
3
|
+
// src/BunPgDriver.ts
|
|
4
4
|
const { getRuntimeConfig, cleanSql, generateOps } = driverApi;
|
|
5
5
|
/** Incomplete Bun SQL driver; raw-query execution is not implemented. */
|
|
6
6
|
var BunPgDriver = class {
|
|
@@ -89,7 +89,6 @@ function convertToSql(sql, query, bindings) {
|
|
|
89
89
|
if (fragments.length - 1 !== bindings.length) throw new Error(`Mismatch between placeholders (${fragments.length - 1}) and bindings (${bindings.length})`);
|
|
90
90
|
return sql(Object.assign(fragments, { raw: fragments }), ...bindings);
|
|
91
91
|
}
|
|
92
|
-
//#endregion
|
|
93
92
|
export { BunPgDriver };
|
|
94
93
|
|
|
95
94
|
//# sourceMappingURL=BunPgDriver.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joist-driver-bun-pg",
|
|
3
|
-
"version": "2.5.0-next.
|
|
3
|
+
"version": "2.5.0-next.20",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"build"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"joist-core": "2.5.0-next.
|
|
42
|
+
"joist-core": "2.5.0-next.20"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"bun-types": "^1.4.4"
|