- Select specific property of model object. (
OS.select(table, property)
) - Addition of several exceptions and error handling.
- Several refactors from the library.
- Fix a lot of bugs and performance increase .
- Create data with object model. (
OS.add(table, model)
) - Get data object. (
OS.get(table)
) - Update Data object. (
OS.update(table, property, value)
) - Delete "Table" & value. (
OS.delete(table)
) - Get some information from API & localStorage.(
OS.infos()
)
let userModel = {
"name": "Steve",
"fullname": "Jackson",
"age": 14
}
OS.add("user", userModel)
Output: You have creating an table user with name, fullname and age models
OS.get("user")
Output: Here we get the user table
OS.update("user", "age", "15");
Output: Here we edit the age of Steve to 15 year old.
OS.select("user", "age");
Output: Here we select property of specific table. (15)
OS.delete("user");
Output: We delete the table (key & value)
OS.infos();
Output: Give some informations of API and localStorage
Name | Desc |
---|---|
table | String |
object | Object |
property | String, Number, Boolean |