Insert into sqlite3 with better-sqlite3 not working
The drizzle logger out put:
Drizzle function call:
DB:
All seems good but no data being inserted into db, what might be wrong?
Code here: https://github.com/Jokcy/solidstart-cf
GitHub
GitHub - Jokcy/solidstart-cf
Contribute to Jokcy/solidstart-cf development by creating an account on GitHub.
4 Replies
I'm not sure you need to join your current path with
./db.sqlite
You might be writing to another file without noticingBut read and write are in the same instance, I can not read any records
If you delete it, is it being created when you start the program?
Worked after I delete the db file, don't know what happened though, THX anywary