consts

package
v0.0.1-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// P0755 is the permission mode for the database files.
	P0755 = 0755
	// BatchSize is the default batch size for the database.
	BatchSize = 1000
)
View Source
const (
	// RemoverWildcard is the wildcard for the remover.
	RemoverWildcard = "[+|#|+]"
	// NullWildcard is the wildcard for the null.
	NullWildcard = "x00"
)
View Source
const (
	// DocumentFieldID is the field name for the document ID.
	DocumentFieldID = "_id"
)

Variables

View Source
var (
	CollectionKeyPathmatcher          = pathmatcher.NewPath("dbs/{db}/colls/{collection}")
	CollectionKeyStringFormat         = "dbs/%s/colls/%s"
	DocumentKeyPathmatcher            = pathmatcher.NewPath("dbs/{db}/colls/{collection}/docs/{docId}")
	DocumentKeyStringFormat           = "dbs/%s/colls/%s/docs/%s"
	IndexKeyPathmatcher               = pathmatcher.NewPath("dbs/{db}/colls/{collection}/idxs/{indexName}/{fields}/{values}/{docId}")
	IndexKeyStringFormat              = "dbs/%s/colls/%s/idxs/%s/%s/%s/%s"
	MetadataDatabaseKeyPathmatcher    = pathmatcher.NewPath("meta/dbs/{db}")
	MetadataDatabaseKeyStringFormat   = "meta/dbs/%s"
	MetadataCollectionKeyPathmatcher  = pathmatcher.NewPath("meta/dbs/{db}/colls/{collection}")
	MetadataCollectionKeyStringFormat = "meta/dbs/%s/colls/%s"
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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