Yes, haven't you tried that already ? var result = db.query("SELECT * FROM demo where name=?", 'WSO2');
On Tue, Jun 4, 2013 at 4:10 PM, Dilshan Edirisuriya <dils...@wso2.com>wrote: > Thanks Nuwan. Based on the code it seems we have to pass them as arguments > to query. How to do the mapping? Can we use a place holder like "?" > > > On Tue, Jun 4, 2013 at 7:34 PM, Nuwan Bandara <nu...@wso2.com> wrote: > >> We do prepareStatement() inside the DB module [1] >> >> [1] >> https://github.com/wso2/jaggery/blob/master/components/hostobjects/org.jaggeryjs.hostobjects.db/src/main/java/org/jaggeryjs/hostobjects/db/DatabaseHostObject.java >> >> >> On Tue, Jun 4, 2013 at 2:25 PM, Dilshan Edirisuriya <dils...@wso2.com>wrote: >> >>> Hi, >>> >>> How do we do subject? Could not find that in the Jaggery documentation >>> at [1]. FYI I need a similar implementation as prepared statement. >>> >>> [1] - http://jaggeryjs.org/apidocs/rdb.jag >>> >>> Regards, >>> >>> Dilshan >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> d...@jaggeryjs.org >>> http://mail.jaggeryjs.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Thanks & Regards, >> >> Nuwan Bandara >> Technical Lead & Member, MC, Development Technologies >> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >> blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 >> 9629 >> * >> <http://www.nuwanbando.com/> >> > > -- *Thanks & Regards, Nuwan Bandara Technical Lead & Member, MC, Development Technologies WSO2 Inc. - lean . enterprise . middleware | http://wso2.com blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629 * <http://www.nuwanbando.com/>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev