You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(typegen): add route for go
* feat(typegen): cleanup server.ts and set up local typegen for go
* feat(typegen): create go table structs
* feat(typegen): create go view/matview structs
* feat(typegen): create go composite type structs
* feat(typegen): go: handle range types
* feat(typegen): go: test
* feat(typegen): go: format
* feat(typegen): separate go types by operation and add nullable types
* feat(typegen): go: format
* feat(typegen): go: handle empty tables
* chore: update snapshot
---------
Co-authored-by: Bobbie Soedirgo <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,9 +100,14 @@ To start developing, run `npm run dev`. It will set up the database with Docker
100
100
101
101
If you are fixing a bug, you should create a new test case. To test your changes, add the `-u` flag to `vitest` on the `test:run` script, run `npm run test`, and then review the git diff of the snapshots. Depending on your change, you may see `id` fields being changed - this is expected and you are free to commit it, as long as it passes the CI. Don't forget to remove the `-u` flag when committing.
102
102
103
-
To make changes to the TypeScript type generation, run `npm run gen:types:typescript` while you have `npm run dev` running.
103
+
To make changes to the type generation, run `npm run gen:types:<lang>` while you have `npm run dev` running,
104
+
where `<lang>` is one of:
105
+
106
+
-`typescript`
107
+
-`go`
108
+
104
109
To use your own database connection string instead of the provided test database, run:
105
-
`PG_META_DB_URL=postgresql://postgres:postgres@localhost:5432/postgres npm run gen:types:typescript`
110
+
`PG_META_DB_URL=postgresql://postgres:postgres@localhost:5432/postgres npm run gen:types:<lang>`
0 commit comments