Up |
_sqliteOpenFile
Open a new connection from a db file. This function is a convenience with the defaults parameters.
Prototype :
fun [Chn P] ObjSqlite
- Chn : a channel, typically the current channel.
- P : a read-reference file (db file). This type is P but the api can write to this db file (if the rights are ok).
Return : ObjSqlite a new Scol object or nil if error.
See also :
Example :
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;;