Skip to content

Joint models #2752

Closed Answered by simolus3
clragon asked this question in Q&A
Nov 28, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You're right - views would generate flat data structures so they can't do this.

In my opinion, drift's generator should only generate row classes for tables without going into the direction of a full ORM. Resolving references in row classes and queries is not in scope for this project. I think drift is a great platform for others to build this on: Drift builders emit their results as hidden json files as well which others could pick up to infer relations and the runtime API can be used to build complex queries too. But I don't think this should be part of drift itself.

If you don't mind writing the queries yourself, you can use nested results in drift files which would give you a similar …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@clragon
Comment options

Answer selected by clragon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants