schema

package
v3.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL