postgres

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToPostgres

func ConnectToPostgres() (*pgxpool.Pool, error)

func CreatePostgresTestServer

func CreatePostgresTestServer(ctx context.Context) (testcontainers.Container, error)

func StartPostgresTestServer

func StartPostgresTestServer(ctx context.Context) (testcontainers.Container, error)

StartPostgresTestServer starts a postgres test server. Remember to call postgresDBServer.Terminate(ctx)

func TruncateTable

func TruncateTable(pgxConn *pgxpool.Pool, table string) error

TruncateTable will truncate any postgres table.

Types

This section is empty.

Jump to

Keyboard shortcuts

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