Skip to content

Migrate Query to ADT #1

Description

@chuwy

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)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions