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 数据库访问对象
Click to show internal directories.
Click to hide internal directories.