postgres

package
v0.0.0-...-6f67f49 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

func CreateConstraintIfMissing

func CreateConstraintIfMissing(tableName, constraintName, constraintQuery string) error

func CreateTableIfMissing

func CreateTableIfMissing(tableName string, createQuery string) error

func GetDb

func GetDb() *sql.DB

func Initialize

func Initialize(connectionString string)

func PostgresCheck

func PostgresCheck() health.Checker

func SeedDatabase

func SeedDatabase(seedFunctions []SeedFunction) error

Types

type SeedFunction

type SeedFunction func() error

Jump to

Keyboard shortcuts

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