Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

expose v_two.json #4232

Open
Open
@jay-babu

Description

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

        AltStyle によって変換されたページ (->オリジナル) /