Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

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: formatting
  • Loading branch information
xsadia committed Oct 11, 2023
commit 436af332625f98f158bb21f5fba3de4411f926b1
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