Sqlite insert returning typing help
Been using this lots for PG but trying now with Sqlite. I'm confused by how tog et the returned object after inserting. It's not super clear from the docs:
According to this, I can just use
.returning()
but the type for that looks like the table object, not the record that would be returned.Quering with SQL-like syntax [CRUD] – DrizzleORM
Drizzle ORM | %s
3 Replies
These are the properties I'm seeing:
I assume you need to use .all()
after returning()
Oh that's it, thanks!