data

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 6 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.Datum
	Schema model.Schema
}

func UseCollection

func UseCollection(collection *model.Collection) Data

func (Data) Add

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

func (Data) Delete

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

func (Data) Read

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

func (Data) Update

func (d Data) 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