Datastore
Data storage is the basic requirement of a data driven application or device. We have built this feature in order to enable users to store large amount of data like logs of devices. Imagine it as an infinite storage between your apps and your devices — ensuring high availability and scalability without you ever worrying about them. Millions of your devices could be logging tons of variables each and you can just treat it as a chunk of Big Data, analyze it, pass it through AI models, and learn from it. To access this feature simply get a reference to the storage class by calling datastore()
method with the project object.
This is illustrated as below
// Get reference to the datastore class
// by calling the datastore method
var datastore = project.datastore();
Datastore of Grandeur is based on no-sql/document based database model. So you can store documents (known as records in sql) into various collections (known as tables in sql). Now once you got the reference to the datastore class, you can simply use all the features by calling the respective methods.