Subqueries in insert statements
I have the following schema (in sqlite)
When inserting into
Is there a way to do this in Drizzle outside of using the
When inserting into
job_titles, in SQL, I've done the following to get the correct language_id given a language.code:Is there a way to do this in Drizzle outside of using the
sql function and writing the wrong string? Right now, I've just writen a Typescript function to recreate the functionality but I just want to know if there's other approaches