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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database Connection Configuration Options #249

Closed
sdi13 opened this issue Jun 8, 2018 · 2 comments
Closed

Database Connection Configuration Options #249

sdi13 opened this issue Jun 8, 2018 · 2 comments

Comments

@sdi13
Copy link

sdi13 commented Jun 8, 2018

Missing some configuration options from switch.

switch(opt)

For example Connection.config(apsw.SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION, 1) throws ValueError: Unknown config operation 1005

@rogerbinns
Copy link
Owner

That was because there is already a simpler API to call - https://rogerbinns.github.io/apsw/connection.html#apsw.Connection.enableloadextension

@sdi13
Copy link
Author

sdi13 commented Oct 5, 2018

sqlite3_enable_load_extension() enables or disables both the C-API and the SQL function load_extension(). SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION enables only C-API and SQLite docs recommend to use it for security reasons

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

No branches or pull requests

2 participants