database

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForDB

func WaitForDB(ctx context.Context, pgdsn string) error

WaitForDB waits for the database to be ready

Types

type Postgres

type Postgres struct {
	DB *sql.DB
	// contains filtered or unexported fields
}

func NewPostgres

func NewPostgres(pgdsn string) (*Postgres, error)

func (*Postgres) Close

func (p *Postgres) Close() error

func (*Postgres) GetDB

func (p *Postgres) GetDB() *sql.DB

func (*Postgres) InitDB

func (p *Postgres) InitDB() error

Jump to

Keyboard shortcuts

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