Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlxprepper

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prepper

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

Prepper is the struct that holds the error

func NewPrepper

func NewPrepper(db *sqlx.DB) *Prepper

NewPrepper returns a new Prepper

func (*Prepper) DoNotPanic

func (p *Prepper) DoNotPanic()

DoNotPanic allows execution to continue after an sql error Errors must be checked separtely

func (*Prepper) GetErr

func (p *Prepper) GetErr() error

GetErr returns the error if any

func (*Prepper) PanicIfError

func (p *Prepper) PanicIfError()

PanicIfError panics if an error is set

func (*Prepper) Prep

func (p *Prepper) Prep(query string) *sqlx.Stmt

Prep runs Preparex and stashed the error

Jump to

Keyboard shortcuts

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