Documentation
¶
Overview ¶
Command blog is the example application of this repository: a project runner with the users/posts migrations, factories and seeders compiled in. A real project gets the same file from `dbkit init` (as db/main.go).
go run ./examples/blog migrate go run ./examples/blog db:seed
Directories
¶
| Path | Synopsis |
|---|---|
|
Package factories describes how to build fake rows for each table.
|
Package factories describes how to build fake rows for each table. |
|
Package migrations contains your application's migrations.
|
Package migrations contains your application's migrations. |
|
Package models holds plain structs that mirror table rows.
|
Package models holds plain structs that mirror table rows. |
|
Package seeders contains your application's seeders.
|
Package seeders contains your application's seeders. |
Click to show internal directories.
Click to hide internal directories.