package
0.7.0
Repository: https://github.com/lxc/incus.git
Documentation: pkg.go.dev

# Functions

DoesSchemaTableExist return whether the schema table is present in the database.
DotGo writes '<name>.go' source file in the package of the calling function, containing SQL statements that match the given schema updates.
Empty creates a new schema with no updates.
New creates a new schema Schema with the given updates.
NewFromMap creates a new schema Schema with the updates specified in the given map.

# Variables

ErrGracefulAbort is a special error that can be returned by a Check function to force Schema.Ensure to abort gracefully.

# Structs

Schema captures the schema of a database in terms of a series of ordered updates.

# Type aliases

Check is a callback that gets fired all the times Schema.Ensure is invoked, before applying any update.
Hook is a callback that gets fired when a update gets applied.
Update applies a specific schema change to a database, and returns an error if anything goes wrong.