Repository navigation
Classes and functions
Returns an SQLiteConnection with the specified database. Remember to Close() after finishing using it.
Preparing a SQL statement with the specified database, no matter whether it requires preparing.
-
sqlis the SQL statement. -
connis the database connection. - Returns an SQLiteCommand.
SQLiteConnection object represents a connection with an SQLite database.
Return whether the connection is good or not.
Close the connection. Remember to invoke this.
SQLiteCommand object represents a command that is ready for being executed. All commands are assumed as a prepared statement.
void BindParameter(int index, int value)
void BindParameter(int index, float value)
void BindParameter(int index, const char value)
Binding a parameter by its index. Note that the index starts from 1.
Binding a parameter with NULL by its index. Note that the index starts from 1.
void BindParameter(const char param, int value)
void BindParameter(const char param, float value)
void BindParameter(const char param, const char value)
Binding a parameter by its name.
Binding a parameter with NULL by its name.
Executes the command against the connection and returns the number of rows affected. You can use ExecuteNonQuery() to perform any type of database operation, however any result returned will not be available. The statement will be reset after being invoked, meaning that parameters are cleared.
Returns an SQLiteDataReader that can be used for reading query results.
Finalize the object. Remember to invoke this.
Provides a means of reading a forward-only stream of query results.
Advances the reader to the next record. You need to invoke this first to get results after you get the reader.
- Returns whether there are more rows to get.
Find the name of a column by its index.
Get the data by the column index. Note that the index starts from 1.
Get the data by the column name.
Check whether the data is NULL by the column index. Note that the index starts from 1.
Check whether the data is NULL by the column name.
Close the reader and reset the command. Remember to invoke this.