test

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDummyTable added in v0.0.3

func CreateDummyTable(db *sqlx.DB)

Types

type ConnectionSettings

type ConnectionSettings struct {
	Host         string
	Port         string
	User         string
	Password     string
	Database     string
	DisableSSL   bool
	MaxOpenConns int
}

func (*ConnectionSettings) Connect

func (settings *ConnectionSettings) Connect() (*sqlx.DB, error)

func (*ConnectionSettings) Open

func (settings *ConnectionSettings) Open() (*sqlx.DB, error)

func (*ConnectionSettings) String

func (settings *ConnectionSettings) String() string

type FooBar added in v0.0.3

type FooBar struct {
	Id      int        `db:"id"`
	Message string     `db:"message"`
	Flip    bool       `db:"flip"`
	Created *time.Time `db:"created"`
}

type PostgresDatabase

type PostgresDatabase struct {
	Settings *ConnectionSettings
	Pool     *dockertest.Pool
	Network  *dockertest.Network
	Resource *dockertest.Resource
}

func (*PostgresDatabase) SetUp

func (d *PostgresDatabase) SetUp() error

func (*PostgresDatabase) TearDown

func (d *PostgresDatabase) TearDown() error

Jump to

Keyboard shortcuts

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