yesodweb / yesodweb/persistent
Version of rawSql that returns a source
Open
Nobody has claimed this yet.
Feature Request
SQL
- Dominant language
- Haskell
- Stars
- 486
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
Could we add a version of rawSql that returns a Source similar to rawQuery?
E.g.
rawSqlSource :: (RawSql a, MonadSqlPersist m, MonadResource m)
=> Text
-> [PersistValue]
-> Source m a
Contributor guide
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 rawSql and rawQuery entry points and comparing how they construct and return results. Add the requested rawSqlSource API with the stated Source type, then verify that its behavior matches the existing rawQuery pattern and that relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 56/100