yesodweb / yesodweb/persistent
Primitive CLI for CRUD operations
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 486
- Forks
- 306
- PR merge metrics
- No merged PRs in 30d
Description
I started working on a project called persistent-crud-cli with goal of providing an optparse-applicative-based command line parser and Persistent actions for creating, listing, updating and removing entity values.
Given this model
Entity1
field1 Int
field2 String
Entity2
field1 Int
the library would generate following command line subcommands:
list-entities
list-Entity1
list-Entity2
createEntity1 INT TEXT
createEntity2 INT
...
I wanted to get early feedback from Persistent developers. For instance, I had to copy-paste these definitions from Database.Persist.TH, since they aren't exported, but are required for CRUD's TH machinery. What can be done about that?
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 with the proposed persistent-crud-cli project and the referenced definitions in Database.Persist.TH, especially the copied code at Database/Persist/CRUD/TH.hs. Review how the optparse-applicative command structure and Persistent CRUD actions would fit the existing project. The issue is seeking early maintainer feedback, so completion criteria and an implementation entry point are not defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100