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
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -246,4 +246,13 @@ The configuration for this mapping is:
246
246
}
247
247
}
248
248
249
+
## cache table definitions read from database
250
+
251
+
If you do not want to add generated sources to your SCM (source code management system e.g. git) then build systems and other developers need to re-generated them.
252
+
The `pgtalk-gen` uses table definitions from an active database server to generate Go table types.
253
+
With the `-cache` option, this tool can store those definitions in a JSON file which then can be used instead and you add that file to your SCM.
254
+
It is the responsibility of the developer to update it (by deleting it) upon each table definition change in the database.
255
+
See the `test` folder for an example; just run all the tasks in the `Makefile`.
0 commit comments