package options
Import Path
github.com/dgraph-io/badger/v4/options (on go.dev)
Dependency Relation
imports 0 packages, and imported by 2 packages
Involved Source Files
options.go
Package-Level Type Names (total 2)
ChecksumVerificationMode tells when should DB verify checksum for SSTable blocks.
func github.com/dgraph-io/badger/v4.Options.WithChecksumVerificationMode(cvMode ChecksumVerificationMode) badger.Options
const NoVerification
const OnBlockRead
const OnTableAndBlockRead
const OnTableRead
CompressionType specifies how a block should be compressed.
func github.com/dgraph-io/badger/v4/table.(*Table).CompressionType() CompressionType
func github.com/dgraph-io/badger/v4.Options.WithCompression(cType CompressionType) badger.Options
const None
const Snappy
const ZSTD
Package-Level Constants (total 7)
None mode indicates that a block is not compressed.
NoVerification indicates DB should not verify checksum for SSTable blocks.
OnBlockRead indicates checksum should be verified on every SSTable block read.
OnTableAndBlockRead indicates checksum should be verified
on SSTable opening and on every block read.
OnTableRead indicates checksum should be verified while opening SSTtable.
Snappy mode indicates that a block is compressed using Snappy algorithm.
ZSTD mode indicates that a block is compressed using ZSTD algorithm.
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |