Documentation
¶
Index ¶
- type Database
- func (db *Database) BeginRo(ctx context.Context) (kv.Tx, error)
- func (db *Database) BeginRw(ctx context.Context) (kv.RwTx, error)
- func (db *Database) Close()
- func (db *Database) OpenOnce(ctx context.Context) error
- func (db *Database) RoDB() kv.RoDB
- func (db *Database) RwDB() kv.RwDB
- func (db *Database) View(ctx context.Context, f func(tx kv.Tx) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func AsDatabase ¶
func NewDatabase ¶
Click to show internal directories.
Click to hide internal directories.