reset

package
v0.0.0-...-15dca4e Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisconnectClients

func DisconnectClients(ctx context.Context, conn *pgx.Conn) error

func InitialiseDatabase

func InitialiseDatabase(ctx context.Context, conn *pgx.Conn, fsys afero.Fs) error

func RecreateDatabase

func RecreateDatabase(ctx context.Context, options ...func(*pgx.ConnConfig)) error

Recreate postgres database by connecting to template1

func RestartDatabase

func RestartDatabase(ctx context.Context)

func RetryEverySecond

func RetryEverySecond(ctx context.Context, callback func() bool, timeout time.Duration) bool

func Run

func Run(ctx context.Context, fsys afero.Fs, options ...func(*pgx.ConnConfig)) error

func SeedDatabase

func SeedDatabase(ctx context.Context, conn *pgx.Conn, fsys afero.Fs) error

func WaitForHealthyService

func WaitForHealthyService(ctx context.Context, container string, timeout time.Duration) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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