porsager / porsager/postgres

Prevent transform to be applied to the content of an jsonb column

Open
#983 4 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
8.7k
Forks
374
Avg merge
11d 16h
Merged PRs (30d)
1

Description

I am using the transform feature to transform column names from snake case to camel case. This works great.
Unfortunately it also transforms the keys inside a jsonb field which i don't want. Looking through the code this seems intended behavior. Is there a way to opt out of this behavior. The only solution i came up with is to manually typecast jsonb fields to text but this has many undesirable side effects.

Contributor guide

No contributing guide indexed for this repository

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

The issue does not name files, tests, or entry points. Start by locating the transform feature and the handling of PostgreSQL jsonb values, then determine where an opt-out can be specified without text-casting. Done means column-name transforms still work while keys inside opted-out jsonb fields remain unchanged, with coverage for both behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, postgresql
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.