boltdb_service

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const DEV_SUB_DIRECTORY = "./collections/"

Variables

This section is empty.

Functions

This section is empty.

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 {
	document.UnimplementedDocumentPlugin
	// contains filtered or unexported fields
}

func New

func New() (*BoltDocService, error)

New - Create a new dev KV plugin

func (*BoltDocService) Delete

func (s *BoltDocService) Delete(ctx context.Context, key *document.Key) error

func (*BoltDocService) Get

func (*BoltDocService) Query

func (s *BoltDocService) Query(ctx context.Context, collection *document.Collection, expressions []document.QueryExpression, limit int, pagingToken map[string]string) (*document.QueryResult, error)

func (*BoltDocService) QueryStream

func (s *BoltDocService) QueryStream(ctx context.Context, collection *document.Collection, expressions []document.QueryExpression, limit int) document.DocumentIterator

func (*BoltDocService) Set

func (s *BoltDocService) Set(ctx context.Context, key *document.Key, content map[string]interface{}) error

Jump to

Keyboard shortcuts

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