dao

package
v1.3.48 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 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 {
	Release()
	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()
	Query(sql string)
	Next() bool
	Finish()
	GetField(value ...interface{})
	Insert(sql string) int64
	Update(sql string) int64
	Delete(sql string) int64
	Execute(sql string) int64
	CheckTableExist(tableName string) (ret bool)
}

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