yesodweb / yesodweb/persistent

Support JSON path

Open
#1,021 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Postgres
Dominant language
Haskell
Stars
486
Forks
306
PR merge metrics
No merged PRs in 30d

Description

Hi,

Sorry if this is a duplicate, I did not find any issue about it.
Does Persistent support JSON path syntax?

I know that e.g. persistent-postgresql supports JSONB PostgreSQL-specific operators like @> but I found no occurrence of jsonpath operators like @@ or @?.

And if it doesn't: what do you think about adding it?

Cheers

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 by inspecting the persistent-postgresql package's existing JSONB operator support and PostgreSQL's JSON path documentation, then determine whether the request belongs in the shared Persistent interface or only the PostgreSQL backend. Done should be a decided API scope for @@ and @? support plus corresponding tests, if implementation is accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, postgresql
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.