Skip to content

Adding `ref` and `raw` method to Database

Choose a tag to compare

@thetutlage thetutlage released this 04 Mar 16:37

Ref

The ref returns an instance of ReferenceBuilder, which can be used to mark string like values as database identifiers. For example:

Database.query().where('id', Database.ref('some-subquery.user_id'))

With ref, the value will be considered as string literal. But we want it to be reference to a column from a sub query select

Raw

The raw is like rawQuery method, but you cannot execute it.

  • feat: add static raw builder 17090ee
  • feat: add support for reference builder 13ebfd3
  • fix: allow subqueries inside select clause 98a2c60
  • refactor: fix typo in database config stub 429ed34

v7.5.5...v7.6.0