crdb

package
v0.2.0-rc.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, reg prometheus.Registerer, connString string) (*Client, error)

func (*Client) Close

func (c *Client) Close()

Close the underlying db connection(s).

func (*Client) ExecuteTx

func (c *Client) ExecuteTx(ctx context.Context, txOptions pgx.TxOptions, txFunc func(tx pgx.Tx) error) error

Jump to

Keyboard shortcuts

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