{"repo":"otiai10/jstorm","free":true,"listed":false,"github":"https://github.com/otiai10/jstorm","clone":"git clone https://github.com/otiai10/jstorm.git","description":"JavaScript Storage ORM (Object-Relational Mapper) for LocalStorage and Chrome Storage API","language":"TypeScript","stars":10,"topics":["chrome-extension","chrome-storage","javascript","localstorage","orm","typescript"],"license":null,"category":"databases-storage","readme_excerpt":"jstorm ORM-like API provider for window.localStorage and chrome.storage , or any other data store. Getting started Example Usage Basic APIs Defining your model class That's all to get started. Let's enjoy. new To construct new model object: NOTE: new does NOT save constructed object yet. Please use save to make it persistent. save To save unsaved obejct to the storage: Now id is generated because it's saved on the storage. create Just a short-hand of new and save : list To list up all entities saved on this namespace: dict To get all entities saved on this namespace as a dict: find To find specific object saved on this namespace: filter To find objects which should match a specific criteria: update delete To delete a specific object: drop To delete all objects saved on this namespace: Advanced properties schema Use static schema to define relation between your Model s. NOTE: When {eager: true} is provided in schema definition of Types.model , this model always look up your storage to populate specified fields, eagerly. Otherwise, this model just instantiate this field from what's saved under this model. Issues - https://github.com/otiai10/jstorm/issues","default_branch":null,"files":null,"tree":[],"storefront":"/r/otiai10","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/otiai10/jstorm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}