dbutils

package
v0.15.7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpperBound

func UpperBound(prefix []byte) []byte

Calculates the next possible prefix after the given prefix bytes. It's used to establish an upper boundary for prefix-based database scans. Examples:

[1]     	  -> [2]
[1, 255, 255] -> [2]
[1, 2, 255]   -> [1, 3]
[255, 255]    -> nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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