Up |
Reflex called to each request done by _sqliteExec and which return a value (such as 'SELECT ...').
fun [ObjSqlite fun [ObjSqlite u0 S S] u1 u0] ObjSqlite
Return : ObjSqlite the same object or nil if an error occurs.
fun mycallback (db, uparam, column, value)=
_fooS strcat "user parameter : " uparam;
_fooS strcat "column : " column;
_fooS strcat "value : " value;
0;;
fun main ()=
_showconsole;
let _sqliteOpenFile _channel _checkpack "tests/db/sqlite3/test_1.sqlite3" -> mydb in
if mydb == nil then
// do something
else
(
...
_sqliteCallbackExec mydb @mycallback "this is my callback";
...
);
0;;