Commit graph

12 commits

Author SHA1 Message Date
b897ce70ab
Rename relations to relationships.
Closes #11
2024-11-27 15:26:20 +01:00
141c5e674c
Guess reverse one relation foreign key. 2024-11-26 12:54:12 +01:00
27fe66ef03
Add quotes to columns names in one relations and add missing space when one relation is through a table. 2024-11-26 12:14:48 +01:00
66a494cc0b
Fix keys in many relation query through a pivot table. 2024-11-26 10:46:03 +01:00
cbca46020e
Fix query syntax for many relation through a pivot table. 2024-11-26 10:28:17 +01:00
21a2e88295
SQL string runtime allocation is no more needed since the prefix is now always comptime-known. 2024-11-25 18:46:45 +01:00
97c4c429e1
Easier access to relations types and comptime values and improved definition process. 2024-11-25 18:41:29 +01:00
ce5aeffd2c
Improve relations QueryType definition and access. 2024-11-25 15:32:52 +01:00
b3007a1b5d
Load relations which are not inline.
+ Allow to retrieve metadata along with models.
+ Get all unloaded relations after model mapping.
+ Test hasMany relations.
+ Separate runtime and comptime relations instances. TODO: improve this.
* Fix and improve relations query building.
* Fix comptime select build called in runtime functions.
2024-11-25 13:02:59 +01:00
24989603a3
Handle inline relations in result parsing.
+ Parse inline relations when parsing a query result.
+ Implement a custom pg.Mapper to pass the row manually.
2024-11-24 01:53:00 +01:00
04b61f9787
Set relations to retrieve by a query at compile time.
+ Add compile-time utility functions to build strings and queries.
* Relations to retrieve when querying a model must now be set at comptime.
2024-11-22 22:36:51 +01:00
5a2964622c
Relations definition and SQL query build improvements.
+ Relations definition.
+ Add test submodels in testing database.
* Generalize raw SQL query preparation and build.
* Simplify and improve SQL query build algorithms.
2024-11-22 15:41:05 +01:00