Skip to content

Add support for Criteria composition #289

Closed
@FlatMapIO

Description

@FlatMapIO

Criteria.where(Condition) will support the construction of dynamic where clauses.

val noCondition = Conditions.just("1 = 1")
val condition = noCondition.and("name = :name").or(...)
client.select()
            .from("table")
            .matching(Criteria.where(condition))
            .fetch()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions