snapshot of https://github.com/ent/ent.git (master, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
18
examples/start/README.md
Normal file
18
examples/start/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Getting Started Example
|
||||
|
||||
The example from the getting-started page in https://entgo.io.
|
||||
|
||||
### Generate Assets
|
||||
|
||||
```console
|
||||
go generate ./...
|
||||
```
|
||||
|
||||
### Generate Migration Files
|
||||
|
||||
```console
|
||||
atlas migrate diff migration_name \
|
||||
--dir "file://ent/migrate/migrations" \
|
||||
--to "ent://ent/schema" \
|
||||
--dev-url "sqlite://file?mode=memory&_fk=1"
|
||||
```
|
||||
Reference in New Issue
Block a user