ydb-platform / yoj-project

YDB ORM for Java (YOJ) is a lightweight ORM for immutable entities. It has native support for YDB and is battle-tested.
Apache License 2.0
12 stars 11 forks source link

#60: FIX: Make `TableQueryBuilder`'s `where(field)` and `and(field)` have equivalent meaning #62

Closed nvamelichev closed 5 months ago

nvamelichev commented 5 months ago

This way, where(field) does not replace the whole filter expression with itself, but gracefully adds query conditions instead, e.g.:

return db.computeInstances().query()
     .where("id.project").eq(project)
     .where("id.name").eq(name)
     .limit(10)
     .find();