data

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 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 Data

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

func UseCollection

func UseCollection(collection *model.Collection) Data

func (Data) Add

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

func (Data) Delete

func (d Data) Delete(filters interface{}) *er.WdbError

func (Data) Query added in v1.6.0

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

func (Data) Read

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

func (Data) Update

func (d Data) Update(updatedData interface{}, filters interface{}) *er.WdbError

type QueryType added in v1.6.0

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

Jump to

Keyboard shortcuts

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