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
+43-84Lines changed: 43 additions & 84 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ This is a code generator to generate a bunch of structs and functions to impleme
14
14
15
15
* Selecting JSON from the database allows for nested data and does most of the work that an ORM does on the read side. It can be used to flexibly load related data in an eager way (see [example](./example/pgx/repository/repository_project.go)).
16
16
* Querying the database without too much abstraction gives a lot of flexibility - where needed.
17
+
Construct is paired with [github.com/networkteam/qrb](https://github.com/networkteam/qrb) as a PostgreSQL focused query builder that supports querying JSON.
17
18
* Not using the model itself for writes reduces a lot of complexity around dirty checking and other ORM features.
18
19
It works well in an [CQRS](https://martinfowler.com/bliki/CQRS.html) architecture where commands and queries are separated.
19
20
* Database migrations often need more thought and are outside the scope of this tool.
@@ -113,112 +114,70 @@ Construct will automatically generate identifier expressions of fields (read col
113
114
and a default `json_build_object` expression to select a model via JSON. This can be further modified to add additional properties.
0 commit comments