Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for sqlite3_set_authorizer #560

Open
riyaz-ali opened this issue Feb 16, 2021 · 0 comments
Open

Support for sqlite3_set_authorizer #560

riyaz-ali opened this issue Feb 16, 2021 · 0 comments

Comments

@riyaz-ali
Copy link

riyaz-ali commented Feb 16, 2021

Hello there 馃憢 thanks for this awesome package!

I'm currently experimenting with this package and loadable extensions built using my own Go package go.riyazali.net/sqlite ... and the synchronous model is a really good decision! It helps keep things sane in environments where multiple runtimes and schedulers are involved 馃お

One thing I was looking out for but couldn't find was support for compile-time authorization using sqlite3_set_authorizer.

To provide some context, I'm building a golang extension that would provide a set of virtual tables on which the user can run their own (untrusted) SQL queries. I would like my node.js application to set a custom authorizer for current user-session. The authorizer would ensure that the user is only able to query for the (virtual) tables that they have access to.

Is there some known alternative / fork of better-sqlite3 that supports sqlite3_set_authorizer()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants