-
Notifications
You must be signed in to change notification settings - Fork 5.7k
fix(ext/node): implement DatabaseSync#loadExtension #29050
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
)); | ||
|
||
if allow_extension { | ||
perms.check_ffi_all()?; |
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.
Why is there no API name here in case perm check fails?
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.
Doesnt seem to be the part of the the FFI perms API.
fn() { | ||
// skip the test if the extension is not found | ||
try { | ||
Deno.statSync(extensionPath); |
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.
Won't this cause the test to always succeed if something goes wrong?
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.
This is like tests/ffi
so not ran directly using deno test
. With cargo t -p sqlite_extension_test
the extension is always built.
Requires full
--allow-ffi
Fixes #29030