libsql / libsql-node-sqlite3

node-sqlite3 compatible API for libSQL
MIT License
12 stars 1 forks source link

Error handling problem when using local database #4

Closed penberg closed 1 year ago

penberg commented 1 year ago

Dan Kochetov from Drizzle team writes:

Seems like when I'm using a local db and there's an error returned from sqlite3, the process immediately exits, even if I wrap the query in a try-catch block.

honzasp commented 1 year ago

I also noticed that node-sqlite3 sometimes aborts when misused. I think that the problem lies in the original library, not in our wrapper (which does basically nothing when a local db is used).

honzasp commented 1 year ago

Closing, because this is not caused by our library.