database

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DatabaseTimeoutSeconds int    = 5
	MigrationTableName     string = "_gomigrations"
	MigrationSchema        string = "" /* 137-byte string literal not displayed */
	MigrationsDir          string = "migrations"
)

Variables

This section is empty.

Functions

func ApplyMigrations

func ApplyMigrations(db *sql.DB) error

func CheckTableExistence

func CheckTableExistence(db *sql.DB) (bool, error)

func CreateMigrationTable

func CreateMigrationTable(db *sql.DB) error

func ListMigrations

func ListMigrations(db *sql.DB, showHeader bool) error

func NewDatabaseConn

func NewDatabaseConn(db_url string) (*sql.DB, error)

func RollbackMigrations

func RollbackMigrations(db *sql.DB) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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