-
-
Notifications
You must be signed in to change notification settings - Fork 24
Description
description
I attempted to port a class i had which used knex to manage an sqlite database to this library. I'm getting these type of errors from both the sql.js and the sqlite3 driver.
It seems to happen specifically if I perform several rapid calls to the model.create() function.
Along this line of thinking, I attempted to create a small reproduction repo, but i constructed some similar data to what i'm saving and hammered the create() function as fast as I could, and had no dice getting it to throw. You can reproduce this bug if you run yarn test on this repo on the trilogy branch:
https://github.com/vex-chat/libvex-js
I apologize I wasn't able to get a small reproduction of this, but hopefully you have some idea of what is going on by the stack trace.
error
no such table: messages_returning_temp
at c.handleError (node_modules/sql.js/dist/sql-wasm.js:89:254)
at c.exec (node_modules/sql.js/dist/sql-wasm.js:87:6)
at Object.runQuery (node_modules/trilogy/dist/helpers.js:118:37)
at Model.create (node_modules/trilogy/dist/model.js:51:24)
expected
no error should be thrown
actual
error is thrown
Thank you