polygoncommon

package
v1.9.7-0...-acf8c2f Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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 AsDatabase(db kv.RoDB) *Database

func NewDatabase

func NewDatabase(dataDir string, label kv.Label, tableCfg kv.TableCfg, logger log.Logger, accede bool, roTxLimit int64) *Database

func (*Database) BeginRo

func (db *Database) BeginRo(ctx context.Context) (kv.Tx, error)

func (*Database) BeginRw

func (db *Database) BeginRw(ctx context.Context) (kv.RwTx, error)

func (*Database) Close

func (db *Database) Close()

func (*Database) OpenOnce

func (db *Database) OpenOnce(ctx context.Context) error

func (*Database) RoDB

func (db *Database) RoDB() kv.RoDB

func (*Database) RwDB

func (db *Database) RwDB() kv.RwDB

func (*Database) View

func (db *Database) View(ctx context.Context, f func(tx kv.Tx) error) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL