migration

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

README

Implements a very primitive database migration.

Each supported db folder must contain a list of sql files of the format "$order_$desc.sql". Where "$order" is a number, and these numbers have to be consecutive.

Upon starting, there will be logic fetching the number stored in the database, and then execute all sql files which are more recent, in a single transaction.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteArrayToInt

func ByteArrayToInt(arr []byte) int64

func DBMigration

func DBMigration(db *sql.DB, sqlFiles embed.FS, logger gethlog.Logger) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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