Skip to content

Commit ce8696f

Browse files
docs: add atlas to the list of supported migration frameworks (#2700)
1 parent c832c96 commit ce8696f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/howto/ddl.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ parsing SQL files.
3131

3232
sqlc supports parsing migrations from the following tools:
3333

34+
- [atlas](https://github.com/ariga/atlas)
3435
- [dbmate](https://github.com/amacneil/dbmate)
3536
- [golang-migrate](https://github.com/golang-migrate/migrate)
3637
- [goose](https://github.com/pressly/goose)
@@ -51,6 +52,22 @@ sql:
5152
out: "tutorial"
5253
```
5354
55+
### atlas
56+
57+
```sql
58+
-- Create "post" table
59+
CREATE TABLE "public"."post" ("id" integer NOT NULL, "title" text NULL, "body" text NULL, PRIMARY KEY ("id"));
60+
```
61+
62+
```go
63+
package db
64+
65+
type Post struct {
66+
ID int
67+
Title sql.NullString
68+
Body sql.NullString
69+
}
70+
```
5471

5572
### goose
5673

0 commit comments

Comments
 (0)