Confirmed users
398
edits
Line 73: | Line 73: | ||
== Incremental Schema == | == Incremental Schema == | ||
DataStore is designed for sharing data among applications. Applications will make some assumptions on data types of attributes | DataStore is designed for sharing data among applications. Applications will make some assumptions on data types of attributes. If the data type of an attributes is not consistent among applications, applications may be broken. So, data types of attributes should be enforced. | ||
to define types of an attributes while attributes with a new path were found first time. In another word, once a new object was added to a data store, its tree of attributes will be traveled, and define the type of new found attributes with the type of their values. | |||
For example, if the following object is the object been added to a data store. | For example, if the following object is the object been added to a data store. | ||
Line 88: | Line 87: | ||
} | } | ||
Then, the table of | Then, the types table of the data store is | ||
SN: Integer | SN: Integer | ||
name: String | name: String | ||
Line 106: | Line 105: | ||
} | } | ||
The table | The types table should be | ||
SN: Integer | SN: Integer | ||
name: String | name: String | ||
Line 114: | Line 113: | ||
info phone: String | info phone: String | ||
Every time a new object was added to a data store, the types of attributes | Every time a new object was added to a data store, the types of attributes would be checked against the types table of the data store. The action of adding will be failed if the type of any attribute does not match the type defined in the types table. | ||
== Issues == | == Issues == |