Joshua Wise

Results 108 comments of Joshua Wise

@jlongster That's great, the help is much appreciated

@LucaPizzagalli You can't send database objects across IPC channels, but you *can* send a filename (string), which you can then use to open the same database within your renderer process.

One way is to compile the extension yourself and load it with [db.loadExtension()](https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/api.md#loadextensionpath-entrypoint---this).

Has anyone tried the solution presented by @hansputera ?

Can you see if it works in `v7.4.4`?

Also can't reproduce this. As @Prinzhorn said, probably `incorrectPathToDB` is an empty string or `undefined`, both of which cause SQLite3 to open a new temporary database (which means whatever table...

> @JoshuaWise arguably `if(fileMustExist && anonymous)` should throw because they contradict and are incompatible options? Around here somewhere > > https://github.com/JoshuaWise/better-sqlite3/blob/02c9c250bc77311b08bec574d3d40890c0b17256/lib/database.js#L39-L44 Perhaps that could be a helpful error message.

If you were able to reproduce the problem with a non-empty path argument, it sounds like this is a bug in your operating system. The `fileMustExist` option simply causes us...

You can't send a [database connection](https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/api.md#class-database) from one thread to another using [Node.js worker threads](https://nodejs.org/api/worker_threads.html), so how would you invoke the interrupt function from another thread? It might be better...