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

gh-96096: Add undocumented SQLITE_OK/DENY/IGNORE sqlite3 constants #96134

Merged

Conversation

CAM-Gerlach
Copy link
Member

@CAM-Gerlach CAM-Gerlach commented Aug 20, 2022

As discussed in #96096 , add a formal description of the SQLITE_OK/SQLITE_DENY/SQLITE_IGNORE constants referenced in Connection.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.

Doc/library/sqlite3.rst Outdated Show resolved Hide resolved
Doc/library/sqlite3.rst Outdated Show resolved Hide resolved
@erlend-aasland erlend-aasland changed the title gh-96096: Add previously undocumented SQLITE_OK/DENY/IGORNE sqlite3 constants gh-96096: Add undocumented SQLITE_OK/DENY/IGNORE sqlite3 constants Aug 22, 2022
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Doc/library/sqlite3.rst Outdated Show resolved Hide resolved
Doc/library/sqlite3.rst Outdated Show resolved Hide resolved
Doc/library/sqlite3.rst Show resolved Hide resolved
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
@erlend-aasland
Copy link
Contributor

erlend-aasland commented Aug 23, 2022

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 😆).

@erlend-aasland erlend-aasland merged commit d6259c5 into python:main Aug 23, 2022
14 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Aug 23, 2022

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.
🐍🍒🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 23, 2022
…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>
@bedevere-bot
Copy link

bedevere-bot commented Aug 23, 2022

GH-96202 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 23, 2022
…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>
@bedevere-bot
Copy link

bedevere-bot commented Aug 23, 2022

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`),
Copy link
Contributor

@erlend-aasland erlend-aasland Aug 23, 2022

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.

Copy link
Member Author

@CAM-Gerlach CAM-Gerlach Aug 23, 2022

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

Copy link
Contributor

@erlend-aasland erlend-aasland Aug 23, 2022

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!

miss-islington added a commit that referenced this pull request Aug 23, 2022
…H-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>
miss-islington added a commit that referenced this pull request Aug 23, 2022
…H-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>
mdboom pushed a commit to mdboom/cpython that referenced this pull request Aug 24, 2022
…nts (python#96134)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir expert-sqlite3 skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants