dbops

package
v0.41.1-data-migration... Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BadgerTransaction uses badger transactions (default and deprecated)
	BadgerTransaction DBOps = "badger-transaction"
	// BadgerBatch uses badger batch updates
	BadgerBatch DBOps = "badger-batch"
	// PebbleBatch uses pebble batch updates
	PebbleBatch DBOps = "pebble-batch"

	UsageErrMsg string = "invalid --dbops flag, expect badger-transaction/badger-batch/pebble-batch, but got: %v"
)
View Source
const DB_OPS_DEFAULT = string(BadgerTransaction)
View Source
const DB_OPS_MSG = "database operations to use (badger-transaction, badger-batch, pebble-batch)"

The dbops feature flag is used to toggle between different database update operations. Currently, the existing database update operations use badger-transaction, which is default and deprecated. As part of the refactoring process to eventually transition to pebble-batch updates, an intermediate step is required to switch to badger-batch. This is why the feature flag has three possible values to facilitate the transition.

Variables

This section is empty.

Functions

func IsBadgerBased added in v0.39.2

func IsBadgerBased(ops string) bool

func IsBadgerBatch added in v0.39.2

func IsBadgerBatch(ops string) bool

func IsBadgerTransaction added in v0.39.2

func IsBadgerTransaction(ops string) bool

func IsBatchUpdate added in v0.39.2

func IsBatchUpdate(ops string) bool

func IsPebbleBatch added in v0.39.2

func IsPebbleBatch(ops string) bool

Types

type DBOps

type DBOps string

Jump to

Keyboard shortcuts

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