@yongdall/rdb-postgres 0.1.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.
@@ -0,0 +1,10 @@
1
+ import postgres from "#index";
2
+
3
+ //#region providers/rdb-postgres/hooks.yongdall.mjs
4
+ /** @import { Hooks } from '@yongdall/connection' */
5
+ /** @type {Hooks.providers} */
6
+ const providers = { rdb: { postgres } };
7
+
8
+ //#endregion
9
+ export { providers };
10
+ //# sourceMappingURL=hooks.yongdall.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.yongdall.mjs","names":[],"sources":["../../providers/rdb-postgres/hooks.yongdall.mjs"],"sourcesContent":["import postgres from '#index';\n/** @import { Hooks } from '@yongdall/connection' */\n/** @type {Hooks.providers} */\nexport const providers = {\n\trdb: { postgres },\n};\n"],"mappings":";;;;;AAGA,MAAa,YAAY,EACxB,KAAK,EAAE,UAAU,EACjB"}
package/index.d.mts ADDED
@@ -0,0 +1,4 @@
1
+ //#region providers/rdb-postgres/index.d.mts
2
+ declare function _default(url: string): Promise<any>;
3
+ //#endregion
4
+ export { _default as default };
package/index.mjs ADDED
@@ -0,0 +1,6 @@
1
+ //#region providers/rdb-postgres/index.mjs
2
+ var rdb_postgres_default = (url) => import("./postgres-DhUHUAf_.mjs").then((v) => v.default(url));
3
+
4
+ //#endregion
5
+ export { rdb_postgres_default as default };
6
+ //# sourceMappingURL=index.mjs.map
package/index.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../providers/rdb-postgres/index.mjs"],"sourcesContent":["export default (/** @type {string} */url) => import('./postgres.mjs').then(v => v.default(url));\n"],"mappings":";AAAA,4BAAqC,QAAQ,OAAO,2BAAkB,MAAK,MAAK,EAAE,QAAQ,IAAI,CAAC"}
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@yongdall/rdb-postgres",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./index.mjs",
6
+ "exports": {
7
+ ".": "./index.mjs"
8
+ },
9
+ "imports": {
10
+ "#index": "./index.mjs"
11
+ },
12
+ "dependencies": {
13
+ "imodel-pg": "^0.13.0",
14
+ "pg": "^8.12.0"
15
+ },
16
+ "devDependencies": {
17
+ "@yongdall/connection": "^0.1.0",
18
+ "@types/pg": "^8.11.8"
19
+ }
20
+ }
@@ -0,0 +1,14 @@
1
+ import pg from "pg";
2
+ import toConnection from "imodel-pg";
3
+
4
+ //#region providers/rdb-postgres/postgres.mjs
5
+ /**
6
+ * @param {string} [connectionString]
7
+ */
8
+ function link(connectionString) {
9
+ return toConnection(new pg.Pool({ connectionString }));
10
+ }
11
+
12
+ //#endregion
13
+ export { link as default };
14
+ //# sourceMappingURL=postgres-DhUHUAf_.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgres-DhUHUAf_.mjs","names":[],"sources":["../../providers/rdb-postgres/postgres.mjs"],"sourcesContent":["// @ts-ignore\nimport pg from 'pg';\nimport toConnection from 'imodel-pg';\n\n/**\n * @param {string} [connectionString]\n */\nexport default function link(connectionString) {\n\treturn toConnection(new pg.Pool({connectionString}));\n}\n"],"mappings":";;;;;;;AAOA,SAAwB,KAAK,kBAAkB;AAC9C,QAAO,aAAa,IAAI,GAAG,KAAK,EAAC,kBAAiB,CAAC,CAAC"}