I am currently using the GET querying with http e.g:
http://192.168.1.3:12001/csv?tblname
This returns the data but needs parsing. also, if i try working with lists or just variables e.g
http://192.168.1.3:12001/csv?count tblname
or
http://192.168.1.3:12001/csv?namelist
, it gives me a `rank and length error respectively.
Is there a better way to communicate and remote query from inside iphone/ipad apps viz an objective c remote interface?
Thanks Terry, that works!
Any thoughts on alternate/better querying methods?
Hi Terry,
If I use the -l option to log updates, I see that queries done using this approach are not persisted into the log file.
Updates/inserts done via the web interface will behave just like the local process, and for the local process to log updates/inserts you need to use the local handle (zero) as per http://code.kx.com/wiki/Cookbook/Logging
So you need something like:
http://localhost:5000/?0(
Terry
Just to be clear: you don’t have to use “localhost” in the URL, that was just for my own testing. You should still be able to use an IP address and send it a local-handle request such as:
http://192.168.1.3:12001/?0(
Terry
how should i go about doing a function call e.g fnAbc[“Naveen S”; (4 2 1 3 5)]
The insert example is a function call, so it’s the same thing!
http://192.168.1.3:12001/?[0(]("http://localhost:5000/?0(")fnAbc;“naveen”;(4 2 1 3 5))
Hi Terry,
the above works but when i try to restart the instance it gives rollback for a while and then gives wsfull and crashes.
the function updates multiple tables at once, could that be causing it?
Not sure to be honest, I don’t have much experience of using logging unfortunately.
Thanks Terry,
as posted on another topic the trouble was I was trying to do it using studioforkdb+, works fine in console.
Thanks!