Query builder insert

What is the syntax for creating an insert query with the query builder ? There are some examples on the website showcasing select, but i'm looking for insert logic, which the query builder under drizzle-orm/sqlite-core is missing ( seems to only have select on the QueryBuilder)
4 Replies
Vilian
VilianOP•2y ago
Any helpers in the chat 😮
Piotrek
Piotrek•2y ago
You cannot insert with the relational query builder Yet Unless you're talking about something else haha
Vilian
VilianOP•2y ago
My goal is to build insert queries A single table only - So how do i go about using a query builder to create my sql strings (if that is even possible) ?
francis
francis•2y ago
you don't, use db.insert(schema)..... if you are inserting into a single table, why do you need the query builder anyway? its only purpose is to make joins easier

Did you find this page helpful?