function ptest () {
// get api key from property store
var creds = JSON.parse(PropertiesService.getScriptProperties().getProperty('parseKeys'));
// get an abstraction handler
var handler = new cDbAbstraction.DbAbstraction ( cDriverParse, {
"siloid": "polymerdbab",
"dbid": creds.applicationID,
"driverob": creds
});
// do a query of all data
var result = handler.query();
if (result.handleCode < 0) throw JSON.stringify(result);
// show the data
Logger.log(JSON.stringify(result.data));
// do a normal query
var result = handler.query({name:"wilma"});
if (result.handleCode < 0) throw JSON.stringify(result);
// show the data
Logger.log(JSON.stringify(result.data));
// write something
var result = handler.save({name:"saved now"});
if (result.handleCode < 0) throw JSON.stringify(result);
// do a query on creation data with constraints
var c = cDbAbstraction.ENUMS.CONSTRAINTS;
var result = handler.query({
createdAt:handler.constraints([[c.GTE,"2015-03-06T14:59:29.647Z"]])
});
if (result.handleCode < 0) throw JSON.stringify(result);
// show the data
Logger.log(JSON.stringify(result.data));
}