mk3008 / mk3008/rawsql-ts

Track AST parsing for SQL/JSON constructor arguments

Open
#866 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
30
Forks
1
PR merge metrics
No merged PRs in 30d

Description

SQL/JSON constructor argument syntax such as json_object('id' VALUE id ABSENT ON NULL RETURNING jsonb) is currently preserved as a raw argument fragment in rawsql-ts so parser/formatter support can avoid changing SQL semantics.\n\nFollow-up: model SQL/JSON constructor arguments as structured AST nodes instead of RawString once the parser has dedicated support for VALUE pairs, ABSENT/NULL ON NULL, UNIQUE KEYS, and RETURNING clauses.

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

Start by locating the parser handling SQL/JSON constructor arguments and the RawString representation. Review how VALUE pairs, ABSENT/NULL ON NULL, UNIQUE KEYS, and RETURNING clauses are currently preserved; done means these arguments have structured AST nodes while parser and formatter output keeps SQL semantics unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql, typescript
Domain
databases, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.