-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ext/node): implement SQLite Session API #27909
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, but needs a rebase and I have a question about the tests
@@ -73,6 +73,27 @@ Deno.test("[node/sqlite] StatementSync read bigints are supported", () => { | |||
assertEquals(stmt.get(), { key: 1n, __proto__: null }); | |||
}); | |||
|
|||
Deno.test("[node/sqlite] createSession and changesets", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to create these from scratch? Can't we use tests from Node's suite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep we should also enable the Node.js tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess not right now because the sqlite API is not fully on par with Node.js for the tests to pass.
Signed-off-by: Divy Srivastava <[email protected]>
https://nodejs.org/api/sqlite.html#class-session