keyvalue

package
v1.40.7 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DEV_SUB_DIR_COLL = "./kv/"

Variables

This section is empty.

Functions

func GetEndRangeValue

func GetEndRangeValue(value string) string

GetEndRangeValue - Get end range value to implement "startsWith" expression operator using where clause. For example with sdk.Expression("pk", "startsWith", "Customer#") this translates to: WHERE pk >= {startRangeValue} AND pk < {endRangeValue} WHERE pk >= "Customer#" AND pk < "Customer!"

Types

type BoltDoc

type BoltDoc struct {
	Id           string `storm:"id"`
	PartitionKey string `storm:"index"`
	SortKey      string `storm:"index"`
	Value        map[string]interface{}
}

func (BoltDoc) String

func (d BoltDoc) String() string

type BoltDocService

type BoltDocService struct {
	// contains filtered or unexported fields
}

func NewBoltService

func NewBoltService() (*BoltDocService, error)

New - Create a new dev KV plugin

func (*BoltDocService) DeleteKey added in v1.36.0

func (*BoltDocService) GetValue added in v1.36.0

func (*BoltDocService) ScanKeys added in v1.36.0

func (*BoltDocService) SetValue added in v1.36.0

Jump to

Keyboard shortcuts

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