golang.org/x/build@v0.0.0-20240506185731-218518f32b70/cmd/relui/sqlc.yaml (about)

     1  # Copyright 2022 The Go Authors. All rights reserved.
     2  # Use of this source code is governed by a BSD-style
     3  # license that can be found in the LICENSE file.
     4  
     5  version: "2"
     6  sql:
     7    - schema: "../../internal/relui/migrations/"
     8      queries: "../../internal/relui/queries"
     9      engine: "postgresql"
    10      gen:
    11        go:
    12          package: "db"
    13          out: "../../internal/relui/db"
    14          sql_package: "pgx/v4"
    15          emit_all_enum_values: true
    16          overrides:
    17            - go_type: "database/sql.NullString"
    18              db_type: "jsonb"
    19              nullable: true
    20            - go_type: "string"
    21              db_type: "jsonb"
    22              nullable: false
    23            - column: "schedules.once"
    24              go_type:
    25                type: "time.Time"
    26            - go_type: "github.com/google/uuid.UUID"
    27              db_type: "uuid"
    28              nullable: true