Skip to content

JoinConditions inside container and connector conditions #72

Description

@FrancoLiberali

orm.And(), orm.Or() and orm.Not() only support WhereConditions inside, making it imposible to do
orm.Or(
attribute = "something",
relation.attribute == "something",
)

In order to do that, the join must be transformed in a EXISTS.
Once done, WhereCondition can be deleted and orm.NewQuery will not need to put the model as generic type.
It means also changing the way preloads are done, because we can not do a preload from a EXISTS. Maybe the preloads should be done on JoinConditions and not with methods of the condition model

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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