Skip to content
Merged
Changes from all commits
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
modify config file version of mysql tutorial
  • Loading branch information
ken2403 committed Aug 1, 2023
commit a4886b60f65642d13a07e8befbc9532e0af9b6ad
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