dao

package
v1.3.106 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseTable = "BASE TABLE"
	View      = "VIEW"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao interface {
	DBName() string
	String() string
	Release()
	Ping() error
	BeginTransaction() error
	CommitTransaction() error
	RollbackTransaction() error
	CreateDatabase(dbName string) error
	DropDatabase(dbName string) error
	UseDatabase(dbName string) error
	Query(sql string, args ...any) error
	Next() bool
	Finish()
	GetField(value ...interface{}) error
	Insert(sql string, args ...any) (int64, error)
	Update(sql string, args ...any) (int64, error)
	Delete(sql string, args ...any) (int64, error)
	Execute(sql string, args ...any) (int64, error)
	CheckTableExist(tableName string) (bool, string, error)
	Duplicate() (Dao, error)
}

Dao 数据库访问对象

func Fetch

func Fetch(user, password, address, dbName, charSet string) (Dao, error)

Fetch 获取一个数据访问对象

Jump to

Keyboard shortcuts

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