b897ce70ab
Rename relations to relationships.
...
Closes #11
2024-11-27 15:26:20 +01:00
56d9414dfa
Detect NULL relations.
2024-11-26 00:33:45 +01:00
8bc551b55b
Fix double release of the same connection when executing a query.
2024-11-25 23:23:53 +01:00
97c4c429e1
Easier access to relations types and comptime values and improved definition process.
2024-11-25 18:41:29 +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
e33bc5aaa2
Create generic query result mapper and implement it for PostgreSQL.
...
+ Add generic query result mapper.
+ Add query result mapper implementation for PostgreSQL.
2024-11-23 18:18:41 +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
f39fc2cadd
Generalize query results mapping.
2024-10-22 21:42:00 +02:00
cc4c808937
Add sessions (as a specific database connector) and transactions.
...
Closes #2
2024-10-22 16:28:06 +02:00
7e31368fa3
Introduce generic connectors and connections and use them in the queries.
2024-10-22 14:09:02 +02:00
0eecb4df99
Create ZRM, repositories and its related queries.
2024-10-16 12:01:16 +02:00