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.
The id format is "{collectionID}/{recordKey}" where the collection part may use either "." or "/" as a namespace separator. Collection IDs in the definition use "." as separator (e.g. "todo.tags"), so both "todo.tags/abc" and "todo/tags/abc" are accepted. 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.