db

package
v0.0.0-...-716047f Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DSN

func DSN(user, password, db, host string, port int) string

DSN returns data source name for connection

Types

type DB

type DB = sqlx.DB

func NewDB

func NewDB(driverName, dsn string) (*DB, error)

NewDB returns connected Client

type TestSuite

type TestSuite struct {
	suite.Suite
	Conn *DB
}

func (*TestSuite) Reset

func (s *TestSuite) Reset()

func (*TestSuite) SetupSuite

func (s *TestSuite) SetupSuite()

func (*TestSuite) TearDownSuite

func (s *TestSuite) TearDownSuite()

Jump to

Keyboard shortcuts

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