Files
ent/examples/start
Ariel Mashraki 808edd134d dialect/sql: support capturing predicates in selectors
This allows custom predicates mutating the root querying and still respect the AND/OR/NOT semantics
2023-06-22 00:08:26 +03:00
..
2023-04-06 12:50:36 +03:00

Getting Started Example

The example from the getting-started page in https://entgo.io.

Generate Assets

go generate ./...

Generate Migration Files

atlas migrate diff migration_name \
  --dir "file://ent/migrate/migrations" \
  --to "ent://ent/schema" \
  --dev-url "sqlite://file?mode=memory&_fk=1"