Documentation
¶
Index ¶
- type DB
- func (db *DB) Close() error
- func (db *DB) CmpAndSwap(bucket []byte, key []byte, oldValue []byte, newValue []byte) ([]byte, bool, error)
- func (db *DB) CreateTable(bucket []byte) error
- func (db *DB) Del(bucket []byte, key []byte) error
- func (db *DB) DeleteTable(bucket []byte) error
- func (db *DB) Get(bucket []byte, key []byte) (ret []byte, err error)
- func (db *DB) List(bucket []byte) ([]*database.Entry, error)
- func (db *DB) Open(dataSourceName string, opt ...database.Option) error
- func (db *DB) Set(bucket []byte, key []byte, value []byte) error
- func (db *DB) Update(tx *database.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a wrapper over *sql.DB,
func (*DB) CmpAndSwap ¶
func (db *DB) CmpAndSwap(bucket []byte, key []byte, oldValue []byte, newValue []byte) ([]byte, bool, error)
CmpAndSwap implements database.DB.
func (*DB) CreateTable ¶
CreateTable implements database.DB.
func (*DB) DeleteTable ¶
DeleteTable implements database.DB.
Click to show internal directories.
Click to hide internal directories.