We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5f57a9 commit dfe6aaaCopy full SHA for dfe6aaa
1 file changed
docs/howto/ddl.md
@@ -37,6 +37,21 @@ sqlc supports parsing migrations from the following tools:
37
- [sql-migrate](https://github.com/rubenv/sql-migrate)
38
- [tern](https://github.com/jackc/tern)
39
40
+To enable migration parsing, specify the migration directory instead of a schema file:
41
+
42
+```yaml
43
+version: "2"
44
+sql:
45
+ - engine: "postgresql"
46
+ queries: "query.sql"
47
+ schema: "db/migrations"
48
+ gen:
49
+ go:
50
+ package: "tutorial"
51
+ out: "tutorial"
52
+```
53
54
55
### goose
56
57
```sql
0 commit comments