Closed vedantnn71 closed 1 year ago
You need to add .run() after .values() function
Oh got it!
Thanks for the quick response @AndriiSherman! :D
I think it was skipped in web docs. We will fix that You can refer to this doc for now https://github.com/drizzle-team/drizzle-orm/blob/main/drizzle-orm/src/sqlite-core/README.md#insert
For select you will need to use .all instead of run
Got it, thanks @AndriiSherman!
What version of
drizzle-orm
are you using?0.26.5
What version of
drizzle-kit
are you using?0.18.1
Describe the Bug
hey, i am using libsql on my local environment with drizzle but i am unable to read, insert, update or delete anything in the database.
all the methods for crud operations seem to be broken. i am on the latest drizzle orm and kit version.
here is the code to reproduce:
my drizzle client code looks like this:
and i am basically using websockets with the help of turso for local development.
Expected behavior
To perform crud operations and return promises.
Environment & setup
Linux (pop_os) Node version =>
18.6.0
Package manager =>pnpm