Clone this wiki locally
node-sqlite3 has built-in function call serialization and automatically waits before executing a blocking action until no other action is pending. This means that it's safe to start calling functions on the database object even if it is not yet fully opened. The
Database#close() function will wait until all pending queries are completed before closing the database.