-
Notifications
You must be signed in to change notification settings - Fork 5.7k
fix(ext/node): various node:sqlite
fixes
#29404
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
Conversation
ENABLE_DOUBLE_QUOTED_STRING_LITERALS_STRING = "enableDoubleQuotedStringLiterals", | ||
} | ||
|
||
let open_string = OPEN_STRING.v8_string(scope).unwrap(); |
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.
Unrelated to this PR, but I think the API should be OPEN_STRING.from_scope(scope)
- the unwrap shouldn't be necessary here
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.
A few comments but overall LGTM - really solid work
suite('StatementSync.prototype.get()', () => { | ||
test('executes a query and returns undefined on no results', (t) => { | ||
const db = new DatabaseSync(nextDb()); | ||
t.after(() => { db.close(); }); | ||
let stmt = db.prepare('CREATE TABLE storage(key TEXT, val TEXT)'); |
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.
Just to be 100% sure - have you verified that these actually pass and are not silently ignored by deno test
is something goes wrong? If so, our support for node:test
is getting pretty good 💪
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, went through fixing each test as the previous one passed so it does actually work!
Something weird happening in this new test file (
All tests pass but its still reporting as failed with no output. I've reverted the test for now from CI. |
Extracted from #29404 Upgrades deno_core to 0.350.0
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.
Let's go
Changes:
#[undefined]
retval foropen
,set_allow_bare_named_parameters
andset_read_bigint
readOnly
property optional inDatabaseSync
code
properties.Todo:
#[validate(fn)]
for custom arg validation deno_core#1137