dbwrap

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

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

func New

func New(dbtx sqlc.DBTX, schema string) *Wrapper

func (*Wrapper) CopyFrom

func (w *Wrapper) CopyFrom(ctx context.Context, table pgx.Identifier, cols []string, src pgx.CopyFromSource) (int64, error)

func (*Wrapper) Exec

func (w *Wrapper) Exec(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error)

func (*Wrapper) Query

func (w *Wrapper) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)

func (*Wrapper) QueryRow

func (w *Wrapper) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row

Jump to

Keyboard shortcuts

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