db_migrator

package
v0.0.0-...-e37bcbf Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate()

Types

type ConnectionString

type ConnectionString interface {
	GetConnectionStringWithoutDB() (string, error)
	GetConnectionString() (string, error)
}

type Db

type Db struct {
	Connection *sql.DB
}

func (*Db) Connect

func (db *Db) Connect(connectionString ConnectionString) error

func (*Db) ConnectWithoutDB

func (db *Db) ConnectWithoutDB(connectionString ConnectionString) error

func (*Db) Disconnect

func (db *Db) Disconnect() error

func (Db) Query

func (db Db) Query(query string) (*sql.Rows, error)

Jump to

Keyboard shortcuts

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