Skip to content

Commit 4a18cc2

Browse files
authored
modify config file version of mysql tutorial (#2555)
1 parent 1999232 commit 4a18cc2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/tutorials/getting-started-mysql.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ directory. In our new directory, create a file named `sqlc.yaml` with the
1616
following contents:
1717

1818
```yaml
19-
version: 1
20-
packages:
21-
- path: "tutorial"
22-
name: "tutorial"
23-
engine: "mysql"
24-
schema: "schema.sql"
19+
version: 2
20+
sql:
21+
- engine: "mysql"
2522
queries: "query.sql"
23+
schema: "schema.sql"
24+
gen:
25+
go:
26+
package: "tutorial"
27+
out: "tutorial"
2628
```
2729
2830
sqlc needs to know your database schema and queries. In the same directory,

0 commit comments

Comments
 (0)