-
Notifications
You must be signed in to change notification settings - Fork 176
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
access to the sqlite3* pointer inside class database #31
Comments
What if we add the useful methods in database class like enable_foreign_keys() or error_code() instead of exposing internal pointer? |
Added the methods. Let me know if you need more methods like these. |
adding methods is always good. But there are many sqlite3 functions that I am afraid won't all be supported in sqlite3pp any time soon. Exposing internal pointer is not neat, but who uses it should be at his own risk. |
Do you have a list of functions in mind? I still prefer hiding the internal pointer in private. |
For now, I think changes() and extended_error_code() will be helpful |
As I wrote, they are already added in d755c07 |
There are many sqlite3 features that are not supported by sqlite3pp::database. As a workaround, it would be nice if user can use the internal sqlite3* pointer.
Some useful features that are not supported;
The text was updated successfully, but these errors were encountered: