MySQLReprepareStmt

package
v2.0.33 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRePrepareError

func IsRePrepareError(err error) bool

Types

type Stmt

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

func Prepare

func Prepare(db *sql.DB, query string) (*Stmt, error)

func PrepareContext

func PrepareContext(ctx context.Context, db *sql.DB, query string) (*Stmt, error)

func (*Stmt) Close

func (s *Stmt) Close() error

func (*Stmt) Exec

func (s *Stmt) Exec(args ...interface{}) (sql.Result, error)

func (*Stmt) ExecContext

func (s *Stmt) ExecContext(ctx context.Context, args ...interface{}) (sql.Result, error)

func (*Stmt) Prepare

func (s *Stmt) Prepare() error

func (*Stmt) PrepareContext

func (s *Stmt) PrepareContext(ctx context.Context) error

func (*Stmt) Query

func (s *Stmt) Query(args ...interface{}) (*sql.Rows, error)

func (*Stmt) QueryContext

func (s *Stmt) QueryContext(ctx context.Context, args ...interface{}) (*sql.Rows, error)

func (*Stmt) QueryRow

func (s *Stmt) QueryRow(args ...interface{}) *sql.Row

func (*Stmt) QueryRowContext

func (s *Stmt) QueryRowContext(ctx context.Context, args ...interface{}) *sql.Row

func (*Stmt) RePrepare

func (s *Stmt) RePrepare() error

func (*Stmt) RePrepareContext

func (s *Stmt) RePrepareContext(ctx context.Context) error

Jump to

Keyboard shortcuts

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