Documentation
¶
Overview ¶
Package generate writes the migration an ent schema change needs, for goback's own index and for anything built on goback that keeps its own schema the same way.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Root holds one migration directory per dialect, named after it.
Root string
// Name is the name of the migration written.
Name string
// PostgresURL is an empty Postgres database; empty starts a container.
PostgresURL string
}
Options says where migrations go and what Postgres to diff against.
Click to show internal directories.
Click to hide internal directories.