Add row_factory to Python bindings #4276
russellromney
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A very useful thing in python sqlite3 is the row factory. I'd like to add a standard Dict row factory and a dataclass row factory, and also document how to add your own (so we don't bundle pydantic).
Example implementaiton:
In docstring:
In use:
I will likely pull a PR for this if it seems like a good idea - I like it to echo python's
sqlite3semantics.Beta Was this translation helpful? Give feedback.
All reactions