ddpgx

package
v2.33.10 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	ConnInfo() *pgtype.ConnInfo
	Begin(context.Context) (pgx.Tx, error)
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
	Close(context.Context) error
}

func Connect

func Connect(ctx context.Context, serviceName, url string, tracerOpts ...TracerOpt) (Connection, error)

func ConnectPoolConfig

func ConnectPoolConfig(ctx context.Context, serviceName string, config *pgxpool.Config, tracerOpts ...TracerOpt) (Connection, error)

type NoopFormatter added in v2.31.0

type NoopFormatter struct{}

type StripNewLinesFormatter added in v2.31.0

type StripNewLinesFormatter struct{}

type TagValueFormatter added in v2.31.0

type TagValueFormatter interface {
	// contains filtered or unexported methods
}

func NewDefaultFormatter added in v2.31.0

func NewDefaultFormatter() TagValueFormatter

func NewNoopFormatter added in v2.31.0

func NewNoopFormatter() TagValueFormatter

type TracerOpt added in v2.31.0

type TracerOpt func(c *internalTracer)

func NoopSpanValueFormatter added in v2.31.0

func NoopSpanValueFormatter() TracerOpt

Jump to

Keyboard shortcuts

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