SoFunction
Updated on 2025-04-03

JSQL  a web DB encapsulation


_CLIENTDATABASE_ = 'HotelManage';
_CLIENTDBVERSION_ = '0.1';
_CLIENTDBDESC_ = "First Client DataBase";
_CLIENTDBSIZE_ = 10240;

JSQL("create table sqllite(id int)").OnClient().execute();
for (var i = 0; i < 1000; i++) {
JSQL("insert into sqllite (id) values ("+i+")").OnClient().execute();
};
var result = ("select * from sqllite").OnClient().executeSQL();
//alert(result);
for(var i=0;i<;i++) {
//do something using result[i]
};