scylladb / scylladb/python-rs-driver
Add built-in named-tuple/tuple factory
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6
- Forks
- 7
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 9
Description
Old driver: session.row_factory is a settable/gettable session default, with built-ins
dict_factory, named_tuple_factory, tuple_factory (test_audit.py:35,399).
We currently eneble user writing their own factories, but We do not expose any built-in ones. Currently the default one is dict-like RowFactory. For better migration We should change it to named tuples and expose built-in row factories.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the current session row-factory API and compare it with the old driver's references in test_audit.py, especially the built-in factories. Done means exposing named-tuple and tuple factories and changing the default from the dict-like RowFactory to named tuples, with matching tests for the migration behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100