How does `db.serialize` work in `node-sqlite3`
Each command inside the serialize() function is guaranteed to finish executing before the next one starts. In your example, the CREATE TABLE will finish before the INSERT gets run. If you didn’t use serialize() then the CREATE TABLE and INSERT statements would be run in parallel. They would start so quickly one after the other … Read more