Documentation ¶ Index ¶ type Check type Hook Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Check ¶ type Check func(ctx context.Context, current int, tx *sql.Tx) error Check is a function that gets executed before applying schema updates. It can be used to validate preconditions or abort the update process. The current parameter indicates the current schema version. type Hook ¶ type Hook func(ctx context.Context, version int, tx *sql.Tx) error Hook is a callback that gets fired when a update gets applied. Source Files ¶ View all Source files schema.go Click to show internal directories. Click to hide internal directories.