joist-driver-bun-pg 1.225.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/build/BunPgDriver.d.ts +17 -0
- package/build/BunPgDriver.d.ts.map +1 -0
- package/build/BunPgDriver.js +31 -0
- package/build/BunPgDriver.js.map +1 -0
- package/package.json +31 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TransactionSQL } from "bun";
|
|
2
|
+
import { Driver, EntityManager, ParsedFindQuery } from "joist-orm";
|
|
3
|
+
import { JoinRowTodo, Todo } from "joist-orm/build/Todo";
|
|
4
|
+
export declare class BunPgDriver implements Driver<TransactionSQL> {
|
|
5
|
+
private readonly idAssigner;
|
|
6
|
+
constructor();
|
|
7
|
+
executeFind(em: EntityManager, parsed: ParsedFindQuery, settings: {
|
|
8
|
+
limit?: number;
|
|
9
|
+
offset?: number;
|
|
10
|
+
}): Promise<any[]>;
|
|
11
|
+
executeQuery(em: EntityManager, sql: string, bindings: any[]): Promise<any[]>;
|
|
12
|
+
transaction<T>(em: EntityManager, fn: (txn: TransactionSQL) => Promise<T>): Promise<T>;
|
|
13
|
+
assignNewIds(em: EntityManager, todos: Record<string, Todo>): Promise<void>;
|
|
14
|
+
flushEntities(em: EntityManager, todos: Record<string, Todo>): Promise<void>;
|
|
15
|
+
flushJoinTables(em: EntityManager, joinRows: Record<string, JoinRowTodo>): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=BunPgDriver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BunPgDriver.d.ts","sourceRoot":"","sources":["../src/BunPgDriver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,aAAa,EAAc,eAAe,EAAsB,MAAM,WAAW,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEzD,qBAAa,WAAY,YAAW,MAAM,CAAC,cAAc,CAAC;IACxD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;;IAMxC,WAAW,CACT,EAAE,EAAE,aAAa,EACjB,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAC5C,OAAO,CAAC,GAAG,EAAE,CAAC;IAIjB,YAAY,CAAC,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAI7E,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAItF,YAAY,CAAC,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3E,aAAa,CAAC,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5E,eAAe,CAAC,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAGzF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BunPgDriver = void 0;
|
|
4
|
+
const bun_1 = require("bun");
|
|
5
|
+
const joist_orm_1 = require("joist-orm");
|
|
6
|
+
class BunPgDriver {
|
|
7
|
+
idAssigner;
|
|
8
|
+
constructor() {
|
|
9
|
+
this.idAssigner = new joist_orm_1.SequenceIdAssigner(async (s) => await (0, bun_1.sql)(s));
|
|
10
|
+
}
|
|
11
|
+
executeFind(em, parsed, settings) {
|
|
12
|
+
throw new Error("Method not implemented.");
|
|
13
|
+
}
|
|
14
|
+
executeQuery(em, sql, bindings) {
|
|
15
|
+
throw new Error("Method not implemented.");
|
|
16
|
+
}
|
|
17
|
+
transaction(em, fn) {
|
|
18
|
+
throw new Error("Method not implemented.");
|
|
19
|
+
}
|
|
20
|
+
assignNewIds(em, todos) {
|
|
21
|
+
throw new Error("Method not implemented.");
|
|
22
|
+
}
|
|
23
|
+
flushEntities(em, todos) {
|
|
24
|
+
throw new Error("Method not implemented.");
|
|
25
|
+
}
|
|
26
|
+
flushJoinTables(em, joinRows) {
|
|
27
|
+
throw new Error("Method not implemented.");
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.BunPgDriver = BunPgDriver;
|
|
31
|
+
//# sourceMappingURL=BunPgDriver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BunPgDriver.js","sourceRoot":"","sources":["../src/BunPgDriver.ts"],"names":[],"mappings":";;;AAAA,6BAA0C;AAC1C,yCAAmG;AAGnG,MAAa,WAAW;IACL,UAAU,CAAa;IAExC;QACE,IAAI,CAAC,UAAU,GAAG,IAAI,8BAAkB,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,MAAM,IAAA,SAAG,EAAC,CAAC,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,WAAW,CACT,EAAiB,EACjB,MAAuB,EACvB,QAA6C;QAE7C,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,YAAY,CAAC,EAAiB,EAAE,GAAW,EAAE,QAAe;QAC1D,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,WAAW,CAAI,EAAiB,EAAE,EAAuC;QACvE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,YAAY,CAAC,EAAiB,EAAE,KAA2B;QACzD,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,aAAa,CAAC,EAAiB,EAAE,KAA2B;QAC1D,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,eAAe,CAAC,EAAiB,EAAE,QAAqC;QACtE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF;AAlCD,kCAkCC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "joist-driver-bun-pg",
|
|
3
|
+
"version": "1.225.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/joist-orm/joist-orm.git",
|
|
8
|
+
"directory": "packages/drivers/bun-pg"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": "^12.17.0 || ^13.10.0 || ^14 || >= 16.0.0 < 16.2.0 || >= 16.3.0"
|
|
12
|
+
},
|
|
13
|
+
"main": "build/index.js",
|
|
14
|
+
"types": "build/index.d.ts",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"format": "prettier --ignore-path ../../.prettierignore --write '{schema,migrations,src}/**/*.{ts,js,tsx,jsx,graphql}'"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"build"
|
|
20
|
+
],
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"bun-types": "^1.2.1",
|
|
23
|
+
"joist-orm": "1.225.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"prettier": "^3.4.1",
|
|
27
|
+
"prettier-plugin-organize-imports": "^4.1.0",
|
|
28
|
+
"tsconfig-paths": "^4.2.0",
|
|
29
|
+
"typescript": "5.7.2"
|
|
30
|
+
}
|
|
31
|
+
}
|