File size: 473 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# We need to keep a separate sqlc.yaml file for pgdump-lite because
# it's used by make db-schema, which is used by the rest of GoAlert in
# the main sqlc.yaml file.
#
# If we combine them then we end up with a circular dependency that's
# difficult to resolve.
#
# Separating them means we can build/run pgdump-lite without make db-schema.
version: '2'
sql:
  - queries: [queries.sql]
    engine: postgresql
    gen:
      go:
        out: pgd
        sql_package: pgx/v5