reset

package
v1.226.4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TERMINATE_BACKENDS      = "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname IN ('postgres', '_supabase')"
	COUNT_REPLICATION_SLOTS = "SELECT COUNT(*) FROM pg_replication_slots WHERE database IN ('postgres', '_supabase')"
)

Variables

This section is empty.

Functions

func DisconnectClients added in v1.4.7

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

func LikeEscapeSchema added in v1.156.2

func LikeEscapeSchema(schemas []string) (result []string)

func RestartDatabase added in v1.4.7

func RestartDatabase(ctx context.Context, w io.Writer) error

func Run

func Run(ctx context.Context, version string, config pgconn.Config, fsys afero.Fs, options ...func(*pgx.ConnConfig)) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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