ckandown
v1.0.1
Published
LevelDOWN drop in replacement for the CKAN DataStore API
Downloads
2
Readme
ckanDOWN
Experiment for using CKAN DataStore as levelDOWN drop-in replacement. It passes a subset (see test.js) of the abstract-leveldown test suite.
Install it with npm install ckandown
.
Example
var location = 'http://demo.ckan.org/?resource={resource-id}&apikey={apikey}'
var db = ckanDOWN(location)
db.open(function () {
// open makes sure your resource has the right format
db.put('serious', 'data', function (err) {
db.get('serious', function (err, value) {
console.log(value)
db.del('serious', function (err) {
console.log('deleted')
})
})
})
})