mysql

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

type Operator struct{}

func NewOperator

func NewOperator() *Operator

func (*Operator) BulkInsert added in v0.0.2

func (d *Operator) BulkInsert(ctx context.Context, conn any, sql string, args ...any) (err error)

func (*Operator) Count added in v0.0.2

func (d *Operator) Count(ctx context.Context, conn any, sql string, args ...any) (num int64, err error)

func (*Operator) FindAll added in v0.0.2

func (d *Operator) FindAll(ctx context.Context, conn any, model any, sql string, args ...any) (err error)

func (*Operator) FindOne added in v0.0.2

func (d *Operator) FindOne(ctx context.Context, conn any, model any, sql string, args ...any) (err error)

func (*Operator) Insert added in v0.0.2

func (d *Operator) Insert(ctx context.Context, conn any, sql string, args ...any) (id int64, err error)

func (*Operator) IsSelectKey added in v0.0.2

func (d *Operator) IsSelectKey(word string) bool

func (*Operator) OperatorSQL

func (d *Operator) OperatorSQL(operator string) string

func (*Operator) Remove added in v0.0.2

func (d *Operator) Remove(ctx context.Context, conn any, sql string, args ...any) (num int64, err error)

func (*Operator) Update added in v0.0.2

func (d *Operator) Update(ctx context.Context, conn any, sql string, args ...any) (num int64, err error)

Jump to

Keyboard shortcuts

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