Skip to content

Method Select

Louis Richard edited this page Nov 22, 2019 · 4 revisions

This method execute a given select query

  • Parameter
    • string query
      • The select query you wish to execute
  • returns
    • SQLiteDataReader
      • The query result

First, we open a connection with the SQLite database using the ConnectToDatabase method.
Using what ConnectToDatabase returns, define the next query to execute using the CommandText attribute.
Then, we use ExecuteReader to execute the query. ExecuteReader returns the result of said query.
We, then, close the database connection using ConnectToDatabase with the parameter true.
Finally, we return the query result.

Clone this wiki locally