generic

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Schema

func Schema(db *sql.DB) int

func SetSchemaVersion

func SetSchemaVersion(db *sql.Tx, v int)

func V13AddSettingEnableApi

func V13AddSettingEnableApi(db *sql.Tx)

func V1CreateSettingsTable

func V1CreateSettingsTable(db *sql.Tx)

Types

type MigrationFn

type MigrationFn func(*sql.Tx)

type MigrationFnTx

type MigrationFnTx func(*sql.DB)

type MigrationsWrapper

type MigrationsWrapper struct {
	SchemaFn func(*sql.DB) int
}

func (*MigrationsWrapper) Migrate

func (m *MigrationsWrapper) Migrate(migrationFn MigrationFn, thisVersion int) MigrationFnTx

Jump to

Keyboard shortcuts

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