hediet / ts-typed-sql

A fully typed sql builder. Not maintained anymore, use it for your inspiration.
https://hediet.github.io/ts-typed-sql/
54 stars 4 forks source link

between operator #21

Open phiresky opened 7 years ago

phiresky commented 7 years ago

a BETWEEN x AND y

a.between(x, y) is much easier to read than a.isAtLeast(x).and(t.isAtMost(y))

https://www.postgresql.org/docs/9.1/static/functions-comparison.html