Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiffResult ¶
DiffResult holds the generated SQL for one model.
func Diff ¶
Diff compares Go struct models against the live database schema and returns ALTER TABLE statements for any columns that are present in the struct but missing from the database table. The driver parameter must match the active database driver (e.g. "mysql", "postgres", "sqlite", "cockroachdb").
Click to show internal directories.
Click to hide internal directories.