Skip to content

Initial JSONB support for typed_sql. #291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

isoos
Copy link
Collaborator

@isoos isoos commented May 30, 2025

Note there are a few question in this code, e.g.:

  • I have no idea where to place the JsonValueSubjectExt.
  • Whether the JsonValue wrapper is the best way to approach this.
  • Whether the jsonb codec for sqlite is used correctly.

However, I think this may be a good start to start supporting it.

@isoos isoos requested a review from jonasfj May 30, 2025 17:06
@isoos isoos force-pushed the typed-sql-jsonb branch from 2ba779c to 923d18d Compare May 30, 2025 17:14
/// Return `true` and consume next column, if next column is `null`.
bool tryReadNull();
}

class JsonValue {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Final, implementation or base, but pick one and reason why :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be documented, not sure if we want it in adapter or typed_sql library..

We definitely need to explicitly document what types are allowed in value including what type parameters map and list must have.

We should not allow adapter specific behaviour here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated (also moved), PTAL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants