![]() |
Open a new connection to a db file.
fun [Chn P I I I] ObjSqlite
Return : ObjSqlite a new Scol object or nil if error.
typeof mydb = ObjSqlite;;
fun main ()=
_showconsole;
set mydb = _sqliteOpenFile _channel "mybase.db" SCOL_SQLITE_ONLYREAD nil nil;
if mydb == nil then
// error : do something
else
// success : do something
0;;
VFS configuration functions are not included. The default configuration of the host system is used.
About cache, see http://www.sqlite.org/sharedcache.html too.