remotedb

package
v0.0.0-...-ff78b6e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemote

func NewRemote(v gointerfaces.Version, logger log.Logger, remoteKV remote.KVClient) remoteOpts

NewRemote defines new remove KV connection (without actually opening it) version parameters represent the version the KV client is expecting, compatibility check will be performed when the KV connection opens

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func (*DB) AllTables

func (db *DB) AllTables() kv.TableCfg

func (*DB) BeginRo

func (db *DB) BeginRo(ctx context.Context) (txn kv.Tx, err error)

func (*DB) BeginRw

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

func (*DB) BeginRwNosync

func (db *DB) BeginRwNosync(ctx context.Context) (kv.RwTx, error)

func (*DB) BeginTemporalRo

func (db *DB) BeginTemporalRo(ctx context.Context) (kv.TemporalTx, error)

func (*DB) BeginTemporalRw

func (db *DB) BeginTemporalRw(ctx context.Context) (kv.RwTx, error)

func (*DB) BeginTemporalRwNosync

func (db *DB) BeginTemporalRwNosync(ctx context.Context) (kv.RwTx, error)

func (*DB) CHandle

func (db *DB) CHandle() unsafe.Pointer

func (*DB) Close

func (db *DB) Close()

func (*DB) EnsureVersionCompatibility

func (db *DB) EnsureVersionCompatibility() bool

func (*DB) PageSize

func (db *DB) PageSize() uint64

func (*DB) ReadOnly

func (db *DB) ReadOnly() bool

func (*DB) Update

func (db *DB) Update(ctx context.Context, f func(tx kv.RwTx) error) (err error)

func (*DB) UpdateNosync

func (db *DB) UpdateNosync(ctx context.Context, f func(tx kv.RwTx) error) (err error)

func (*DB) View

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

func (*DB) ViewTemporal

func (db *DB) ViewTemporal(ctx context.Context, f func(tx kv.TemporalTx) error) (err error)

Jump to

Keyboard shortcuts

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