How do I use NOW() in Drizzle?
Can someone explain how to write the following query in Drizzle?
3 Replies
The sql operator to the rescue:
Thank you very much! Is this worth adding to the docs?
I feel like using
NOW()
must be pretty common for people using Postgres.
Additionally, I did actually come across the docs talking about sql
, but it wasn't clear that you can use it inside of a .set
call. The only example talks about using it to replace the entire query with SQL using db.execute.I guess you could add an issue in GH to add that to the docs