-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-96096: Add undocumented SQLITE_OK/DENY/IGNORE sqlite3 constants #96134
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
gh-96096: Add undocumented SQLITE_OK/DENY/IGNORE sqlite3 constants #96134
Conversation
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Let's land this; thanks for the PR, CAM, and thanks for the review Ezio! I'll try and come up with something that can make the whole authoriser section more accurate (and readable 😆). |
Thanks @CAM-Gerlach for the PR, and @erlend-aasland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
…nts (pythonGH-96134) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit d6259c5) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
GH-96202 is a backport of this pull request to the 3.11 branch. |
…nts (pythonGH-96134) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit d6259c5) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
GH-96203 is a backport of this pull request to the 3.10 branch. |
Flags that should be returned by the *authorizer_callback* callable | ||
passed to :meth:`Connection.set_authorizer`, to indicate whether: | ||
|
||
* Access is allowed (:const:`!SQLITE_OK`), |
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.
Oh, I forgot the accidental comma! Note to self to fix it in an upcoming PR.
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.
Silly mistake; my fault again for being sloppy 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.
No problem, you're fine!
…nts (python#96134) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
As discussed in #96096 , add a formal description of the
SQLITE_OK
/SQLITE_DENY
/SQLITE_IGNORE
constants referenced inConnection.set_authorizer()
, and update that method to elide duplicate content.Maybe some mention should be made of
SQLITE_OK
's evident broader role? I'm not really well informed about the subject matter on this one to have any opinion on that.