My main goal at this moment is to make HMGSCRIPT, independent of server technology, meaning that the library and client app code could work with any backend without modifications.
Basically, I'm removing dbquery, dbappend, dbdelete and dbmodify functions from the library and replacing with only one function that should be used for all the server requests.
So, using dbquery as an example, the following code:
Code: Select all
aRecordSet = DbQuery ( 'table' ,
[ 'code' , 'first' , 'last' , 'birth' , 'married' ] ,
'code<=10 .or. code>=1000' , '' );
Code: Select all
aRecordSet = httpRequest ( '/cgi-bin/myquery.cgi' , 'table' ,
[ 'code' , 'first' , 'last' , 'birth' , 'married' ] ,
'code<=10 .or. code>=1000' , '' );
Another thing to be done, is to make array data transfers using a standard format (probably JSON) but I've not decided yet.