-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
sqlite3 docs: extract row factory examples into row factory howto #96168
Comments
Seems reasonable to me—short-ish examples are reasonable for a reference, but advice like
is much more appropriate in a how-to, or perhaps actually an explanation (but there isn't really enough meat for that, and a how-to is certainly closer than a reference here) |
As a first step, I suggest to improve the dict-factory example by:
|
- use dict comprehension - use doctest iso. testcode, for visualising the effect of the row factory - SELECT with multiple columns, so the effect of the row factory becomes clearer
Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 91f40f3) Co-authored-by: Erlend E. Aasland <[email protected]>
Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 91f40f3) Co-authored-by: Erlend E. Aasland <[email protected]>
Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]>
Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 91f40f3) Co-authored-by: Erlend E. Aasland <[email protected]>
Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> (cherry picked from commit 91f40f3) Co-authored-by: Erlend E. Aasland <[email protected]>
Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]>
(cherry picked from commit 8749121) Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]>
(cherry picked from commit 8749121) Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]>
(cherry picked from commit 8749121) Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]>
(cherry picked from commit 8749121) Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: C.A.M. Gerlach <[email protected]> Co-authored-by: Ezio Melotti <[email protected]>
There are several row factory examples scattered around the sqlite3 docs. Most of them in various places in the reference. Suggesting to extract them and create a row factory How-to Guide, in order to clean up the reference and reduce duplication of information.
gh-96168: Improve sqlite3 dict_factory example #96457
[3.11] gh-96168: Improve sqlite3 dict_factory example (GH-96457) #96494
[3.10] gh-96168: Improve sqlite3 dict_factory example (GH-96457) #96495
gh-96168: Add sqlite3 row factory how-to #99507
[3.11] gh-96168: Add sqlite3 row factory how-to (GH-99507) #99778
[3.10] gh-96168: Add sqlite3 row factory how-to (GH-99507) #99779
The text was updated successfully, but these errors were encountered: