package
3.0.0-15+incompatible
Repository: https://github.com/pip-services3-go/pip-services3-data-go.git
Documentation: pkg.go.dev

# Functions

CloneObject is clones object function Parameters: - item interface{} an object to clone Return interface{} copy of input item.
CloneObjectForResult is clones object for result function Parameters: - item interface{} an object to clone -proto reflect.Type type of returned value, need for detect object or pointer returned type Return interface{} copy of input item.
CompareValues are ompares two values Parameters: - value1 interface{} an object one for compare - value2 interface{} an object two for compare Return bool true if value1 equal value2 and false otherwise.
FromIds method convert ids string array to array of interface{} object Parameters: - ids - []string array of ids Return []interface{} array of ids.
GenerateObjectId is generates a new id value when it's empty Parameters: - item *interface{} an pointer on object to set id property Results saved in input object.
Get object Id value Parameters: - item interface{} an object to read property from.
Gets value of object property specified by its name.
Creates a new instance of the persistence.
Creates a new instance of the persistence.
Creates a new empty instance of the persistence.
Creates a new instance of the persistence.
Creates a new instance of the MemoryPersistence Parameters: - prototype reflect.Type type of contained data Return *MemoryPersistence a MemoryPersistence.
SetObjectId is set object Id value Parameters: - item *interface{} an pointer on object to set id property - id interface{} id value for set Results saved in input object.
Sets value of object property specified by its name.
ToPublicArray method convert array of interface{} object to array of map[string]interface{} Parameters - value - []interface{} input object to convert Return []map[string]interface{} converted map array.
ToPublicMap method convert interface{} object to map[string]interface{} Parameters - value - interface{} input object to convert Return map[string]interface{} converted object to map.

# Structs

Abstract persistence component that stores data in flat files and caches them in memory.
Abstract persistence component that stores data in flat files and implements a number of CRUD operations over data items with unique ids.
Abstract persistence component that stores data in memory and implements a number of CRUD operations over data items with unique ids.
Persistence component that loads and saves data from/to flat file.
Abstract persistence component that stores data in memory.

# Interfaces

IFilteredPageReader is interface for data processing components that can retrieve a page of data items by a filter.
Interface for data processing components that can retrieve a list of data items by filter.
Interface for data processing components that can get data items.
Interface for data processing components that load data items.
Interface for data processing components to update data items partially.
Interface for data processing components that can query a page of data items.
Interface for data processing components that can query a list of data items.
Interface for data processing components that save data items.
Interface for data processing components that can set (create or update) data items.
Interface for data processing components that can create, update and delete data items.