db

package
v0.0.0-...-d3b8ba1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PostgresqlDatabaseType = "postgresql"
)

Functions

func RunMigrations

func RunMigrations(backend SqlBackend, migrationsBasePath string) error

Types

type MigrationDriver

type MigrationDriver interface {
	MigrationDriver() (database.Driver, error)
}

type SQLDatabaseType

type SQLDatabaseType = string

type SqlBackend

type SqlBackend interface {
	MigrationDriver
	Db() *sql.DB
	DatabaseType() SQLDatabaseType
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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