Skip to content

Commit

Permalink
modify config file version of mysql tutorial (#2555)
Browse files Browse the repository at this point in the history
  • Loading branch information
ken2403 authored Aug 1, 2023
1 parent 1999232 commit 4a18cc2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/tutorials/getting-started-mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ directory. In our new directory, create a file named `sqlc.yaml` with the
following contents:

```yaml
version: 1
packages:
- path: "tutorial"
name: "tutorial"
engine: "mysql"
schema: "schema.sql"
version: 2
sql:
- engine: "mysql"
queries: "query.sql"
schema: "schema.sql"
gen:
go:
package: "tutorial"
out: "tutorial"
```
sqlc needs to know your database schema and queries. In the same directory,
Expand Down

0 comments on commit 4a18cc2

Please sign in to comment.