Skip to content

Instantly share code, notes, and snippets.

@mrsimonemms
Last active August 29, 2015 14:23
Show Gist options
  • Save mrsimonemms/1ae3e2e68ad4e56fb52b to your computer and use it in GitHub Desktop.
Save mrsimonemms/1ae3e2e68ad4e56fb52b to your computer and use it in GitHub Desktop.
Redback Query
var universe = require("universejs");
/* Redback Query */
var redback = universe.redback(connectionConfig);
redback.query("objectName", "methodName", { "key1": "param1"}, function (err, data) {
/* Callback - handle error or do something with the data */
});
var universe = require("universejs");
/* UniObject Query */
var uniobject = universe.uniobject(connectionConfig);
uniobject.query("LIST CUSTOMER NAME ADDRESS1 ADDRESS2 POSTCODE WITH POSTCODE = 'AB12 3CD' BY NAME", function (err, data) {
/* Callback - handle error or do something with the data */
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment