Last active
August 29, 2015 14:23
-
-
Save mrsimonemms/1ae3e2e68ad4e56fb52b to your computer and use it in GitHub Desktop.
Redback Query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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