Skip to content

Support marshaling / unmarshaling values to JSON #2761

Description

@kyleconroy

MySQL, PostgreSQL and SQLite all now have support for JSON values. They also include a large set of JSON functions. sqlc should be able to marshal / unmarshal JSON values into Go types beyond json.RawMessage.

Activity

  1. changed the title [-]Support marshaling values to JSON[/-] [+]Support marshaling / unmarshalling values to JSON[/+] on Oct 2, 2023
  2. changed the title [-]Support marshaling / unmarshalling values to JSON[/-] [+]Support marshaling / unmarshaling values to JSON[/+] on Oct 2, 2023
  3. RyPeck commented on May 20, 2024

    @RyPeck

    @kyleconroy would this include override support on the return value of these functions in the future?

    https://play.sqlc.dev/p/36d17603277ae408469c9e07010a038779e226daa6a108ac53cfa1b0655f6bb8

    Would be useful to be able to define an override on the alias_name when using JSON functions (->, ->> and the others).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions