true-pg 0.3.1 → 0.3.2
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/README.md +2 -2
- package/lib/index.js +2 -2
- package/package.json +6 -3
package/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# true-pg
|
2
2
|
|
3
|
-
A truthful and complete[1] TypeScript code generator for PostgreSQL database schemas.
|
3
|
+
A truthful and complete [^1] TypeScript code generator for PostgreSQL database schemas.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -135,4 +135,4 @@ The `SchemaGenerator` interface provides methods to customize code generation:
|
|
135
135
|
|
136
136
|
[MIT](LICENSE)
|
137
137
|
|
138
|
-
[1]: We support codegen for tables, views, materialized views, enums, composite types, domains, ranges, and functions.
|
138
|
+
[^1]: We support codegen for tables, views, materialized views, enums, composite types, domains, ranges, and functions.
|
package/lib/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Extractor, FunctionReturnTypeKind } from "./extractor/index.js";
|
2
|
-
import { rm, mkdir, writeFile } from "fs/promises";
|
2
|
+
import { rm, mkdir, writeFile } from "node:fs/promises";
|
3
3
|
import { Nodes, allowed_kind_names } from "./types.js";
|
4
|
-
import { existsSync } from "fs";
|
4
|
+
import { existsSync } from "node:fs";
|
5
5
|
import { join } from "./util.js";
|
6
6
|
export { config } from "./types.js";
|
7
7
|
import { Kysely } from "./kysely/index.js";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "true-pg",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.2",
|
4
4
|
"type": "module",
|
5
5
|
"module": "lib/index.js",
|
6
6
|
"main": "lib/index.js",
|
@@ -21,7 +21,8 @@
|
|
21
21
|
"prepare": "bun run build"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
24
|
-
"@types/bun": "latest"
|
24
|
+
"@types/bun": "latest",
|
25
|
+
"@types/pg": "^8.11.13"
|
25
26
|
},
|
26
27
|
"peerDependencies": {
|
27
28
|
"kysely": "^0.27",
|
@@ -29,7 +30,9 @@
|
|
29
30
|
"zod": "^3"
|
30
31
|
},
|
31
32
|
"dependencies": {
|
33
|
+
"@electric-sql/pglite": "^0.2.17",
|
32
34
|
"cosmiconfig": "^9.0.0",
|
33
|
-
"mri": "^1.2.0"
|
35
|
+
"mri": "^1.2.0",
|
36
|
+
"pg": "^8.14.1"
|
34
37
|
}
|
35
38
|
}
|