Documentation
¶
Index ¶
Constants ¶
View Source
const DatabaseID = "ingitdb"
Variables ¶
This section is empty.
Functions ¶
func CollectionForKey ¶ added in v0.9.0
func CollectionForKey(def *ingitdb.Definition, id string) (*ingitdb.CollectionDef, string, error)
CollectionForKey finds the collection and record key for a given ID string. id format: "collection/path/recordKey" where the collection part uses "/" as separator. Collection IDs in the definition use "." as separator, which is normalized to "/" for matching. The longest matching collection prefix wins.
func NewLocalDBWithDef ¶ added in v0.9.0
NewLocalDBWithDef creates a localDB with a preloaded schema definition. The definition enables CRUD operations that require collection metadata.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.