Previous Up Next

SqlFetch
Selection callback definition function, makes it possible to define a callback function that will be called for each line returned by the SqlRequest function

SqlDB SqlFetch (
SqlDB _db_
fun [SqlDB u0 [S r1]] I _callback_
u0 _user_
)
Parameters

_db_
any SqlDB
_callback_
if the return code for this callback is set to 0, the SqlRequest will recall it, providing it with the next line
if the return code for this callback is not 0, processing of the SqlRequest function will be stopped
in all cases, if a callback function is defined by SqlFetch, the SqlRequest function will return null
lastly, the callback remains valid during the execution of the next SqlRequest. It is thus automatically deactivated when SqlRequest is returned
_user_
user parameter
Return value

same SqlDB