Up

_sqliteOpenFile

Open a new connection from a db file. This function is a convenience with the defaults parameters.

Prototype :

fun [Chn P] ObjSqlite

Return : ObjSqlite a new Scol object or nil if error.

See also :

_sqliteOpenFileEx

_sqliteOpenMemory

_sqliteOpenTemp

_sqliteClose

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;;