postgres_utils

package
v0.91.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PurgePSQLPublicSchemaObjects

func PurgePSQLPublicSchemaObjects(ctx context.Context, host string, port int, user, password, db string) error

func QuoteLiteral

func QuoteLiteral(s string) string

func ReopenPSQLConnections

func ReopenPSQLConnections(ctx context.Context, host string, port int, adminUser, adminPass, adminDB, targetDB string) error

func RestrictPSQLConnections

func RestrictPSQLConnections(ctx context.Context, host string, port int, adminUser, adminPass, adminDB, targetDB, allowedUser string) error

func RunPSQL

func RunPSQL(ctx context.Context, host string, port int, user, password, db, sql string) error

func RunPSQLCapture

func RunPSQLCapture(ctx context.Context, host string, port int, user, password, db, sql string, out *strings.Builder) error

func RunPSQLFromReader

func RunPSQLFromReader(ctx context.Context, host string, port int, user, password, db string, r io.Reader) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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