Conversation
| assert(conn ~= nil, "It shouldn't be nil") | ||
| -- assert(sql.connect() == nil, "It return handler") | ||
| assert(conn:close() ~= nil, "It should close connection") | ||
| -- TODO(tami): We should have an api for checking connection status |
There was a problem hiding this comment.
int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetFlag); and
int sqlite3_status64(
int op,
sqlite3_int64 *pCurrent,
sqlite3_int64 *pHighwater,
int resetFlag
);There was a problem hiding this comment.
But thats not connection thats status of operation i think 🤔
There was a problem hiding this comment.
int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int resetFlg); for db
int sqlite3_stmt_status(sqlite3_stmt*, int op,int resetFlg); for statement
There was a problem hiding this comment.
Oh we can check for both the statement and the status. thats important for the exec function
There was a problem hiding this comment.
For example it would be cool to error out to the user that the issue is with his sql statement
There was a problem hiding this comment.
Yeah we should use both
b1b4d53 to
2b5b4f3
Compare
2b5b4f3 to
21efbcf
Compare
|
closed in favor of #5 which will cover the tests created here. |
Uh oh!
There was an error while loading. Please reload this page.