records

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryType

type QueryType string
var (
	JsonPathQuery QueryType = "jsonpath"
	EvaluateQuery QueryType = "evaluate"
)

type Records

type Records struct {
	Data       map[model.Identifier]*model.Record
	Schema     model.Schema
	PrimaryKey *model.Identifier
}

func UseCollection

func UseCollection(collection *model.Collection) Records

func (Records) Add

func (r Records) Add(recordId model.Identifier, data interface{}) *er.WdbError

func (Records) Delete

func (r Records) Delete(filters interface{}) *er.WdbError

func (Records) Query

func (r Records) Query(query string, mode QueryType) (interface{}, *er.WdbError)

func (Records) Read

func (r Records) Read(filters interface{}) (map[model.Identifier]*model.Record, *er.WdbError)

func (Records) Update

func (r Records) Update(updatedData interface{}, filters interface{}) *er.WdbError

Jump to

Keyboard shortcuts

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