Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kfranqueiro/dojo-smore
Dojo stores are great! Here, have s'more.
https://github.com/kfranqueiro/dojo-smore
Last synced: about 2 months ago
JSON representation
Dojo stores are great! Here, have s'more.
- Host: GitHub
- URL: https://github.com/kfranqueiro/dojo-smore
- Owner: kfranqueiro
- License: other
- Created: 2012-09-03T01:01:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-02-21T22:16:50.000Z (over 9 years ago)
- Last Synced: 2024-02-01T22:08:25.265Z (5 months ago)
- Language: JavaScript
- Size: 178 KB
- Stars: 28
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-dojo - dojo-smore - package with Dojo/Store implementation (Packages, libraries and scripts)
README
# dojo-smore: S'more Dojo Stores
## Overview
This package contains a few implementations of the `dojo/store` API which
attempt to "bring back" useful features that were present in some of the more
commonly-used `dojo/data` stores, but were never provided out of the box by
anything in `dojo/store`.The following stores are included:
* **Csv** extends `dojo/store/Memory`, overriding its `setData` method to
accept a string in CSV format; comparable to `dojox/data/CsvStore`.
* **QueryRead** implements `dojo/store`'s `get` and `query` methods in a manner
akin (though not identical) to the way in which `dojox/data/QueryReadStore`
works.
* **RequestMemory** extends `dojo/store/Memory`, adding support for a `url`
property (and a `setUrl` method) which will request the data for the store
using `dojo/request`.For further details, see the dojo-doc comments within the respective modules.
## Dependencies
The modules in this package require Dojo 1.8, as they depend on
`dojo/request` and the new Deferred and promise modules.## Installation
To get up and running with this package, simply extract its contents into a
folder that is a sibling of the `dojo` directory.## Tests
To run the tests, install intern-geezer (which can be done by running `npm install` in the dojo-smore folder),
then browse to `test/runTests.html`. Note that the QueryRead tests currently require PHP.## License
This package, like the Dojo Toolkit itself, is dual-licensed under the
modified BSD license and the Academic Free License v2.1.
See the LICENSE file for the full text of both licenses.