{"action":"opened","issue":{"url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/585","labels_url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/585/comments","events_url":"https://api.github.com/repos/mapbox/node-sqlite3/issues/585/events","html_url":"https://github.com/mapbox/node-sqlite3/issues/585","id":124725483,"number":585,"title":"asynchronized or not, the document should clarify it.","user":{"login":"fish520","id":1640796,"avatar_url":"https://avatars.githubusercontent.com/u/1640796?v=3","gravatar_id":"","url":"https://api.github.com/users/fish520","html_url":"https://github.com/fish520","followers_url":"https://api.github.com/users/fish520/followers","following_url":"https://api.github.com/users/fish520/following{/other_user}","gists_url":"https://api.github.com/users/fish520/gists{/gist_id}","starred_url":"https://api.github.com/users/fish520/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fish520/subscriptions","organizations_url":"https://api.github.com/users/fish520/orgs","repos_url":"https://api.github.com/users/fish520/repos","events_url":"https://api.github.com/users/fish520/events{/privacy}","received_events_url":"https://api.github.com/users/fish520/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-04T09:43:53Z","updated_at":"2016-01-04T09:43:53Z","closed_at":null,"body":"I'm really confused that all API are asynchronized ? But after I dig into the `simple-chaining.js` example, I see the `Statment#prepare` API is synchronized at least, but all of them has a node-style callbacks. so the following code \r\n```javascript\r\n    var stmt = db.prepare(\"INSERT INTO lorem VALUES (?)\");\r\n    stmt.run(\"lorem content\");\r\n    stmt.finalize();\r\n```\r\n\r\nmay be identical to the following:\r\n\r\n```javascript\r\n    var stmt = db.prepare(\"INSERT INTO lorem VALUES (?)\", function(){\r\n        console.log(\"second\");\r\n        stmt.run(\"lorem content\");\r\n        stmt.finalize();\r\n    });\r\n    console.log(\"first\");\r\n```\r\n\r\nthe output is as expected, printing 'first' followed by 'second', but I'm thinking the \"key logical\" inside to be synchronized ( the same as `Statement#finallize` and `Statement#bind` ? ), it behaves like a asynchronized one just because the callback is excuted in the next event loop, is that the truth ?\r\n\r\n"}}