Documentation ¶
Index ¶
- func Close() error
- func CreateConstraintIfMissing(tableName, constraintName, constraintQuery string) error
- func CreateTableIfMissing(tableName string, createQuery string) error
- func GetDb() *sql.DB
- func Initialize(connectionString string)
- func PostgresCheck() health.Checker
- func SeedDatabase(seedFunctions []SeedFunction) error
- type SeedFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTableIfMissing ¶
func Initialize ¶
func Initialize(connectionString string)
func PostgresCheck ¶
func SeedDatabase ¶
func SeedDatabase(seedFunctions []SeedFunction) error
Types ¶
type SeedFunction ¶
type SeedFunction func() error
Click to show internal directories.
Click to hide internal directories.