MagicStack / MagicStack/asyncpg
minor suggestion: fetchcol() method
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.1k
- Forks
- 468
- PR merge metrics
- No merged PRs in 30d
Description
You've got:
- `fetchval` for scalars
- `fetchrow` for a horizontal list of values
- `fetch` for a list of list of values
But I don't see a convenience method for returning a vertical list of values — such as when selecting a single column.
(In this case, I think returning a plain old list of values would be more useful than a list of single-value Records.)
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 existing fetchval, fetchrow, and fetch entry points and examining how their return shapes are defined. The work is done when a corresponding fetchcol() convenience method is specified and implemented to return a plain list of values for a single selected column.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, python
- Domain
- api, database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100