executor

package
Version: v0.0.0-...-7cf166a Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 0 Imported by: 0

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
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL