yesodweb / yesodweb/persistent

Primitive CLI for CRUD operations

Open
#1,465 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.