You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to switch to use the enhanced analysis in order to be able to use multiple CTE's. In following the docs I added the servers config to the sqlc.yaml. I then encountered
error parsing sqlc.yaml: yaml: unmarshal errors:
line 2: field servers not found in type config.Config
In order to make sure that it is not a problem with my local setup I tried to use docker run --rm -v $(pwd):/src -w /src sqlc/sqlc generate with the config provided in the docs
docker run --rm -v $(pwd):/src -w /src sqlc/sqlc generate
error parsing sqlc.yaml: yaml: unmarshal errors:
line 2: field servers not found intype config.Config
Database schema
Not necessarily important here, since the parsing of the config fails.
SQL queries
No response
Configuration
initialversion: '2'servers:
- engine: postgresqluri: ${DATABASE_URL}sql:
- engine: postgresqlqueries: "/db/query/"schema: "/db/schema/"database:
managed: truegen:
go:
package: "db"out: "db"sql_package: "pgx/v5"rename:
lower: "Name"# rename the struct field for user name insertionoverrides:
- column: "lenges.schedule"go_type:
import: "lenge-backend/lenge/model"type: "Schedule"
Version
1.26.0
What happened?
I tried to switch to use the enhanced analysis in order to be able to use multiple CTE's. In following the docs I added the
servers
config to thesqlc.yaml
. I then encounteredIn order to make sure that it is not a problem with my local setup I tried to use
docker run --rm -v $(pwd):/src -w /src sqlc/sqlc generate
with the config provided in the docsThe error message is still the same.
Relevant log output
Database schema
SQL queries
No response
Configuration
to verify:
Playground URL
No response
What operating system are you using?
macOS
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: