Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Query to ADT #1

Open
chuwy opened this issue Jul 16, 2023 · 0 comments
Open

Migrate Query to ADT #1

chuwy opened this issue Jul 16, 2023 · 0 comments

Comments

@chuwy
Copy link
Contributor

chuwy commented Jul 16, 2023

Currently, when we transform query (e.g. by adding limit) we in fact just concatenate Fragments which is very unsafe. Instead I think we should create a SELECT AST (later for INSERT and UDPATE as well) and when transforming method is called - we can just patch the bits of this AST. The AST could live in compile-time only, thus it doesn't even have to be completely type-safe.

Select(All, From("persons"), Where(Gte("age", 18)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant