Skip to content

expose v_two.json #4232

@jay-babu

Description

@jay-babu

What do you want to change?

Hello,

It would be nice if https://github.com/sqlc-dev/sqlc/blob/main/internal/config/v_two.json was more public. it is helpful when giving type hints like in:

# yaml-language-server: $schema=https://raw.githubusercontent.com/sqlc-dev/sqlc/main/internal/config/v_two.json
version: "2"
sql:
  - engine: "postgresql"
    queries: "query.sql"
    schema: "pos-db/migrations"
    gen:
      go:
        package: "model"
        out: "."
        sql_package: "pgx/v5"
        emit_empty_slices: true
        emit_sql_as_comment: true
        emit_interface: true
        overrides:
          - go_type: github.com/shopspring/decimal.Decimal
            db_type: pg_catalog.numeric
          - go_type: github.com/shopspring/decimal.Decimal
            db_type: pg_catalog.numeric
            nullable: true

What database engines need to be changed?

No response

What programming language backends need to be changed?

No response

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