Up |
Open a new connection from a db file. This function is a convenience with the defaults parameters.
fun [Chn P] ObjSqlite
Return : ObjSqlite a new Scol object or nil if error.
typeof mydb = ObjSqlite;;
fun main ()=
_showconsole;
set mydb = _sqliteOpenFile _channel _checkpack "tests/db/sqlite3/test_1.sqlite3";
if mydb == nil then
// error : do something
else
// success : do something
0;;