Skynode
A low level client for the Sky database. Operates using the HTTP protocol.
Currently very alpha and lacking tests and docs. Doesn't maintain any form of state and currently really have understanding of the data it's returned by the sky server. Designed largely for higher level clients to be built on top of it
The api/naming/style is by no means fixed at this stage and is open to suggested changes or pull requests.
Stability Index
Based up on node.js stability index
Stability: 1 - Experimental
Installation
npm install skynode
Depenendecies
The request
module us currently used to make all HTTP requests. Nor particularly tied to it though.
Usage
Instantiate a client. Only supported option is host which is non-optional.
var skynode = ; var opts = host:localhost:8585 var client = skynode;
Currently all methods expect a callback as their last argument and that callback will be passed 2 args, err
and response
. e.g
var { iferr console; else console; }
Tables API
List tables
client
Get a table
client
Get a table's stats
client
Create a table
client
Delete a table
client
Properties API
List properties for a table
client
Create a property
var property = name: "check" transient: false dataType: "string"client
Get a property
Rename a property
Delete a property
Events API
List events for an object
Delete all events for an object
Get an event
Replace an event
Merge an event
Delete an event
Query API
Misc APIs
Ping
client