db

package
v0.0.0-...-9ba5f82 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverSQLMock                  = "sqlmock"
	DriverMySQL                    = "mysql"
	MigrateUp     MigrationCommand = "up"
	MigrateDown   MigrationCommand = "down"
)

Variables

This section is empty.

Functions

func Migrate

func Migrate(command MigrationCommand) (change bool, err error)

func NewDatabase

func NewDatabase(ctx context.Context) (*sqlx.DB, error)

Types

type MigrationCommand

type MigrationCommand string

Jump to

Keyboard shortcuts

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