executor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	HostAddress() string
	Username() string
	Password() string
	Database() string
	Same(config Config) bool
}

type Executor

type Executor interface {
	Release()
	BeginTransaction() error
	CommitTransaction() error
	RollbackTransaction() error
	Query(sql string) error
	Next() bool
	Finish()
	GetField(value ...interface{}) error
	Insert(sql string) (int64, error)
	Delete(sql string) (int64, error)
	Update(sql string) (int64, error)
	Execute(sql string) (int64, error)
	CheckTableExist(tableName string) (bool, error)
}

Executor 数据库访问对象

type Pool

type Pool interface {
	Initialize(maxConnNum int, cfgPtr Config) error
	Uninitialize()
	GetExecutor() (Executor, error)
	CheckConfig(cfgPtr Config) error
}

Jump to

Keyboard shortcuts

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