tx

package
v0.0.0-...-7899014 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestPebbleTx

func TestPebbleTx(
	t *testing.T,
	newPeb storepebble.New,
	newKV storekv.New,
	scope Scope,
	wg *pr2.WaitGroup,
)

func TestPebbleTxEntityDelete

func TestPebbleTxEntityDelete(
	t *testing.T,
	newPeb storepebble.New,
	newKV storekv.New,
	scope Scope,
	wg *pr2.WaitGroup,
)

Types

type Def

type Def struct{}

type IndexManager

type IndexManager = index.IndexManager

type KVToStore

type KVToStore func(kv storekv.KV) (store.Store, error)

type Key

type Key = key.Key

type PebbleTx

type PebbleTx func(
	ctx context.Context,
	fn any,
) error

func UsePebbleTx

func UsePebbleTx(
	kvToStore KVToStore,
	peb *storepebble.Store,
	newBatch storepebble.NewBatch,
	scope dscope.Scope,
) PebbleTx

type Scope

type Scope = dscope.Scope

type Store

type Store = store.Store

Jump to

Keyboard shortcuts

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