creating a join for re-use
Drizzle support creating re-usable where and order by expressions like:
gt(customerTable.salary, 5000);
desc(customerTable.salary)
for this no query builder (qb
) is needed.
is something similar available (without the need of a qb
) to create joins (and apply them later)?
and then later do something like:
for where
and orderBy
this is already possible, but for joins I could't find anything.
my use case is that I'm doing some dynamic stuff.
for now I created my own wrapper like:
and I'm doing something like:
Note what I'm doing is quite dyamic, so having a re-usable withCountryJoin(qb)
won't help me unfortunately.0 Replies