Constructor sqlite.sqlite
Overload
Opens or creates a database file.
public sqlite(string file, SLFlags flags = SLFlags.ReadWriteCreate, string sql = null)
Parameters
file (string)
Database file. Can be:
|
flags (SLFlags)
sqlite3_open_v2 flags. Default: read-write, create file if does not exist (and parent directory). |
sql (string)
SQL to execute. For example, one or more ;-separated |
Exceptions
ArgumentException
Not full path. |
SLException
Failed to open database or execute sql. |
Remarks
Calls sqlite3_open_v2.
note
If a variable of this class is used by multiple threads, use lock(variable) { }
where need.