Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: rollback lint
  • Loading branch information
xsadia committed Oct 11, 2023
commit 0acbec0b8de918bb26d1af535bec2e12ae0112db
36 changes: 18 additions & 18 deletions docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ file must be in the directory where the `sqlc` command is run.
```yaml
version: "2"
sql:
- schema: "postgresql/schema.sql"
queries: "postgresql/query.sql"
engine: "postgresql"
gen:
go:
package: "authors"
out: "postgresql"
database:
uri: "postgresql://postgres:postgres@localhost:5432/postgres"
rules:
- sqlc/db-prepare
- schema: "mysql/schema.sql"
queries: "mysql/query.sql"
engine: "mysql"
gen:
go:
package: "authors"
out: "mysql"
- schema: "postgresql/schema.sql"
queries: "postgresql/query.sql"
engine: "postgresql"
gen:
go:
package: "authors"
out: "postgresql"
database:
uri: "postgresql://postgres:postgres@localhost:5432/postgres"
rules:
- sqlc/db-prepare
- schema: "mysql/schema.sql"
queries: "mysql/query.sql"
engine: "mysql"
gen:
go:
package: "authors"
out: "mysql"
```

### sql
Expand Down