Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnknownDialect = errors.New("Unknown database dialect")
)
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Close() error Create(value interface{}) error CreateTx(value interface{}) error Delete(value interface{}, query interface{}, args ...interface{}) error DeleteTx(value interface{}, query interface{}, args ...interface{}) error EnableLogging(enable bool) Migrate(dir string) error Open(path string) error Read(out interface{}, query interface{}, args ...interface{}) error ReadAll(out interface{}) error Save(value interface{}) error SaveTx(value interface{}) error SetLogger(log Logger) SetMaxOpenConnections(max int) Tx(fn TxFn) (err error) Update(value interface{}, query interface{}, args ...interface{}) error UpdateTx(value interface{}, query interface{}, args ...interface{}) error }
Click to show internal directories.
Click to hide internal directories.