sqlx

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigIntProcessor

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

func (*BigIntProcessor) BigInt

func (s *BigIntProcessor) BigInt() bool

func (*BigIntProcessor) BigIntFields

func (s *BigIntProcessor) BigIntFields() []string

func (*BigIntProcessor) BigIntText

func (s *BigIntProcessor) BigIntText() bool

func (*BigIntProcessor) SetBigInt

func (s *BigIntProcessor) SetBigInt(v bool)

func (*BigIntProcessor) SetBigIntFields

func (s *BigIntProcessor) SetBigIntFields(f ...string)

func (*BigIntProcessor) SetBigIntText

func (s *BigIntProcessor) SetBigIntText(v bool)

type Result

type Result struct {
	LastInsertId int64
	RowsAffected int64
}

type SQLXModule

type SQLXModule struct {
}

func (SQLXModule) Exports

func (S SQLXModule) Exports() map[string]any

func (SQLXModule) ExportsWithEngine

func (S SQLXModule) ExportsWithEngine(eng *engine.Engine) map[string]any

func (SQLXModule) Identity

func (S SQLXModule) Identity() string

func (SQLXModule) TypeDefine

func (S SQLXModule) TypeDefine() []byte

type SQLx

type SQLx struct {
	*sqlx.DB
	*engine.Engine
	*BigIntProcessor
}

func (*SQLx) Batch

func (s *SQLx) Batch(query string, args []map[string]any) (res Result, err error)

func (*SQLx) Begin

func (s *SQLx) Begin() (*TX, error)

func (*SQLx) Close

func (s *SQLx) Close() error

func (*SQLx) Exec

func (s *SQLx) Exec(query string, args map[string]any) (res Result, err error)

func (*SQLx) Prepare

func (s *SQLx) Prepare(query string) (*Stmt, error)

func (*SQLx) Query

func (s *SQLx) Query(query string, args map[string]any) (goja.Value, error)

type Stmt

type Stmt struct {
	*sqlx.NamedStmt
	*engine.Engine
	*BigIntProcessor
}

func (*Stmt) Close

func (s *Stmt) Close() error

func (*Stmt) Exec

func (s *Stmt) Exec(args map[string]any) (Result, error)

func (*Stmt) Query

func (s *Stmt) Query(args map[string]any) (goja.Value, error)

type TX

type TX struct {
	*sqlx.Tx
	*engine.Engine
	*BigIntProcessor
}

func (*TX) Commit

func (s *TX) Commit() error

func (*TX) Exec

func (s *TX) Exec(query string, args map[string]any) (Result, error)

func (*TX) Prepare

func (s *TX) Prepare(qry string) (*Stmt, error)

func (*TX) Query

func (s *TX) Query(query string, args map[string]any) (goja.Value, error)

func (*TX) Rollback

func (s *TX) Rollback() error

func (*TX) Stmt

func (s *TX) Stmt(stmt *Stmt) *Stmt

Directories

Path Synopsis
Package mysql provides a MySQL driver for Go's database/sql package.
Package mysql provides a MySQL driver for Go's database/sql package.

Jump to

Keyboard shortcuts

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