raw<V extends Object?> function

Raw<V> raw<V extends Object?>(
  1. String sql
)

The escape hatch: a fragment of SQL used verbatim, wherever the DSL has no spelling for it.

Usable in both positions, since which one it is only the caller knows:

// As a predicate: where, having, checks.
check('one_ref', raw('("a" IS NOT NULL) + ("b" IS NOT NULL) = 1')).on(t);

// As a value, typed by the caller.
db.select(raw<String>("glob('c*', name)")).from(users);

To mix column handles and bound values into a fragment, use RawParts.parts

Implementation

Raw<V> raw<V extends Object?>(String sql) => Raw<V>(sql);