db

package
v0.0.0-...-4f3ca93 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2018 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectPostgres

func ConnectPostgres(url string) (*sql.DB, error)

func Reset

func Reset(db *sql.DB) error

func ToNullString

func ToNullString(s string) (result sql.NullString)

Types

type SQLBuilder

type SQLBuilder struct {
	// contains filtered or unexported fields
}

func NewSQLBuilder

func NewSQLBuilder() *SQLBuilder

func (*SQLBuilder) Append

func (b *SQLBuilder) Append(sql string)

func (*SQLBuilder) Args

func (b *SQLBuilder) Args() []interface{}

func (*SQLBuilder) End

func (b *SQLBuilder) End()

func (*SQLBuilder) Parameter

func (b *SQLBuilder) Parameter(sql string, val interface{})

func (*SQLBuilder) String

func (b *SQLBuilder) String() string

Jump to

Keyboard shortcuts

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