A .NET wrapper to the SQLite database

SQLiteClient Constructor 

Instanciates a new copy of a SQLiteClient object and attempts to open the database with the supplied name.

[Visual Basic]
Public Sub New( _
   ByVal dbName As String _
)
[C#]
public SQLiteClient(
   string dbName
);

Parameters

dbName
Name of the database to open

Remarks

The name of an SQLite database is the name of a file that will contain the database. If the file does not exist, SQLite attempts to create and initialize it. If the file is read-only (due to permission bits or because it is located on read-only media like a CD-ROM) then SQLite opens the database for reading only.

The entire SQL database is stored in a single file on the disk. But additional temporary files may be created during the execution of an SQL command in order to store the database rollback journal or temporary and intermediate results of a query.

Exceptions

Exception TypeCondition
SQLiteExceptionThrown if an error occurs opening the database

Example

            db = new SQLite("testdb");
            

See Also

SQLiteClient Class | SQLite.NET Namespace