postgres

package
v0.0.0-...-bb88bec Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ViaSTD

func ViaSTD(config *Config) (*sql.DB, error)

Types

type Config

type Config struct {
	User     string
	Password string
	Database string
	Host     string
	Port     uint16
}

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

func ViaPGX

func ViaPGX(ctx context.Context, cfg *Config) (Pool, error)

func (Pool) Close

func (p Pool) Close()

func (Pool) Query

func (p Pool) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)

Jump to

Keyboard shortcuts

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