client

package
v0.0.0-...-a3f95ae Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package client implements client connection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*postgresClient)

Option -.

func AddLogger

func AddLogger(base logger.Logger) Option

AddLogger -.

func MaxPoolSize

func MaxPoolSize(size int) Option

MaxPoolSize -.

type PGClient

type PGClient interface {
	Close()
	Pool() *pgxpool.Pool
	Rollback(ctx context.Context, tx pgx.Tx)
	Builder() squirrel.StatementBuilderType
}

func New

func New(url string, opts ...Option) (PGClient, error)

New -.

Jump to

Keyboard shortcuts

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