Documentation
¶
Overview ¶
Package db provides embedded database migrations for pbflags. Migrations are managed by goose and applied automatically via --upgrade.
Index ¶
Constants ¶
View Source
const MinSchemaVersion = 1
MinSchemaVersion is the minimum migration version required by this binary.
Variables ¶
This section is empty.
Functions ¶
func CheckSchemaVersion ¶ added in v0.11.0
CheckSchemaVersion verifies the database schema meets the minimum required migration version. Returns an error with an actionable message if the schema is missing or behind.
func CheckSchemaVersionConn ¶ added in v0.11.0
CheckSchemaVersionConn is like CheckSchemaVersion but accepts an existing *sql.DB connection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.