@syncular/typegen 0.0.6-72 → 0.0.6-79
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/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Generate TypeScript database types from your migrations.
|
|
4
4
|
|
|
5
|
-
Supports SQLite and Postgres introspection with column-level codec type overrides via `
|
|
5
|
+
Supports SQLite and Postgres introspection with column-level codec type overrides via `codecs`.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -21,7 +21,7 @@ await generateTypes({
|
|
|
21
21
|
migrations,
|
|
22
22
|
output: './src/db.generated.ts',
|
|
23
23
|
dialect: 'postgres',
|
|
24
|
-
|
|
24
|
+
codecs: (col) => {
|
|
25
25
|
if (col.table === 'events' && col.column === 'payload') {
|
|
26
26
|
return codecs.stringJson({
|
|
27
27
|
import: { name: 'EventPayload', from: './domain' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/typegen",
|
|
3
|
-
"version": "0.0.6-
|
|
3
|
+
"version": "0.0.6-79",
|
|
4
4
|
"description": "TypeScript type generator for Syncular schemas",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Benjamin Kniffler",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@electric-sql/pglite": "^0.3.15",
|
|
47
|
-
"@syncular/migrations": "0.0.6-
|
|
47
|
+
"@syncular/migrations": "0.0.6-79",
|
|
48
48
|
"better-sqlite3": "^12.6.2",
|
|
49
49
|
"kysely-bun-sqlite": "^0.4.0",
|
|
50
50
|
"kysely-pglite-dialect": "^1.2.0"
|