C# Class FaceDetection.Model.Recognition.DatabaseHandler

Show file Open project: PkInfRemi/FaceDetectionApp

Public Methods

Method Description
Insert ( string statement ) : long

Inserts data into the database.

InsertAsync ( string statement ) : Task

Asynchronously inserts data into the database.

ResetDatabase ( ) : bool

Resets the database.

Select ( string statement ) : SQLiteDataReader

Selects data from the database.

SelectAsync ( string statement ) : Task

Asynchonously selects data from the database.

SelectObject ( string statement ) : object

Selects data from the database.

SelectObjectAsync ( string statement ) : Task

Asynchronously selects data from the database.

Update ( string statement ) : bool

Updates data in the database.

UpdateAsync ( string statement ) : Task

Asynchronously updates data in the database.

Private Methods

Method Description
CloseConnection ( ) : bool
CreateTables ( ) : bool
DatabaseHandler ( ) : System
DeleteDatabase ( ) : bool
InitializeConnection ( ) : bool
InitializeDatabase ( ) : bool
OpenConnection ( ) : void

Method Details

Insert() public static method

Inserts data into the database.
public static Insert ( string statement ) : long
statement string The statement.
return long

InsertAsync() public static method

Asynchronously inserts data into the database.
public static InsertAsync ( string statement ) : Task
statement string The statement.
return Task

ResetDatabase() public static method

Resets the database.
public static ResetDatabase ( ) : bool
return bool

Select() public static method

Selects data from the database.
public static Select ( string statement ) : SQLiteDataReader
statement string The statement.
return System.Data.SQLite.SQLiteDataReader

SelectAsync() public static method

Asynchonously selects data from the database.
public static SelectAsync ( string statement ) : Task
statement string The statement.
return Task

SelectObject() public static method

Selects data from the database.
public static SelectObject ( string statement ) : object
statement string The statement.
return object

SelectObjectAsync() public static method

Asynchronously selects data from the database.
public static SelectObjectAsync ( string statement ) : Task
statement string The statement.
return Task

Update() public static method

Updates data in the database.
public static Update ( string statement ) : bool
statement string The statement.
return bool

UpdateAsync() public static method

Asynchronously updates data in the database.
public static UpdateAsync ( string statement ) : Task
statement string The statement.
return Task