Documentation ¶
Index ¶
- Constants
- func CheckErrors(err1, err2 error) bool
- func DropDB(dbName string) error
- func ErrToStr(err error) string
- func FloatPointer(n float32) *float32
- func Int64Pointer(i int64) *int64
- func IntPointer(i int) *int
- func LoadFixtures(fixturesDir, dbName string) error
- func SetupDB(dbDirPath string, dbName string) error
- func StringPointer(s string) *string
Constants ¶
View Source
const ( TestDBUser = "vulcan" TestDBPassword = "vulcan" DBConnString = "port=5434 user=%s password=%s sslmode=disable dbname=%s" DBConnStringWithoutDB = "port=5434 user=%s password=%s sslmode=disable dbname=scan-enginedb" )
Variables ¶
This section is empty.
Functions ¶
func CheckErrors ¶
CheckErrors returns trues if the both params are nil or both are not nil and are the same kind.
func FloatPointer ¶
FloatPointer returns a pointer to a float32 parameter passed in. It's just an utility option for initializing inline struct fields.
func Int64Pointer ¶
IntPointer returns a pointer to a int parameter passed in. It's just an utility option for initializing inline struct fields.
func IntPointer ¶
IntPointer returns a pointer to a int parameter passed in. It's just an utility option for initializing inline struct fields.
func StringPointer ¶
StringPointer returns a pointer to a string parameter passed in. It's just an utility option for initializing inline struct fields.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.