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

Support passing row_factory parameter to SQLite provider. #495

Open
wants to merge 2 commits into
base: orm
Choose a base branch
from

Conversation

tonycpsu
Copy link

The sqlite3 driver allows for a row_factory parameter to connections
that lets one set a factory function for result rows. This change
allows that parameter to be set when binding to a database so that one
can, for instance, get namedtuples back instead of tuples with no field
names. (Passing in kwargs doesn't work because row_factory isn't a
constructor parameter for sqlite.connect)

The sqlite3 driver allows for a row_factory parameter to connections
that lets one set a factory function for result rows.  This change
allows that parameter to be set when binding to a database so that one
can, for instance, get namedtuples back instead of tuples with no field
names.  (Passing in kwargs doesn't work because row_factory isn't a
constructor parameter for sqlite.connect)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant