Skip to content

Commit

Permalink
docs: add atlas to the list of supported migration frameworks (#2700)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbenton authored Sep 6, 2023
1 parent c832c96 commit ce8696f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/howto/ddl.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ parsing SQL files.

sqlc supports parsing migrations from the following tools:

- [atlas](https://github.com/ariga/atlas)
- [dbmate](https://github.com/amacneil/dbmate)
- [golang-migrate](https://github.com/golang-migrate/migrate)
- [goose](https://github.com/pressly/goose)
Expand All @@ -51,6 +52,22 @@ sql:
out: "tutorial"
```
### atlas
```sql
-- Create "post" table
CREATE TABLE "public"."post" ("id" integer NOT NULL, "title" text NULL, "body" text NULL, PRIMARY KEY ("id"));
```

```go
package db

type Post struct {
ID int
Title sql.NullString
Body sql.NullString
}
```

### goose

Expand Down

0 comments on commit ce8696f

Please sign in to comment.