boltdb_service

package
v0.15.0-rc.10 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 15 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(key *document.Key) error

func (*BoltDocService) Get

func (s *BoltDocService) Get(key *document.Key) (*document.Document, error)

func (*BoltDocService) Query

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

func (*BoltDocService) QueryStream

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

func (*BoltDocService) Set

func (s *BoltDocService) Set(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