dao

package
v1.3.81 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao interface {
	String() string
	Release()
	BeginTransaction() error
	CommitTransaction() error
	RollbackTransaction() 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, error)
}

Dao 数据库访问对象

func Fetch

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

Fetch 获取一个数据访问对象

Jump to

Keyboard shortcuts

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