C# Class SQLiteDatabase, HDHomeRun_Stream_Builder

Afficher le fichier Open project: robnewton/HDHomeRun_Stream_Builder Class Usage Examples

Méthodes publiques

Méthode Description
ClearDB ( ) : bool

Allows the programmer to easily delete all data from the DB.

ClearTable ( String table ) : bool

Allows the user to easily clear all data from a specific table.

Delete ( String tableName, String where ) : bool

Allows the programmer to easily delete rows from the DB.

ExecuteNonQuery ( SQLiteCommand command ) : int

Allows the programmer to interact with the database for purposes other than a query.

ExecuteNonQuery ( string sql ) : int

Allows the programmer to interact with the database for purposes other than a query.

ExecuteScalar ( string sql ) : string

Allows the programmer to retrieve single items from the DB.

GetDataTable ( string sql ) : DataTable

Allows the programmer to run a query against the Database.

Insert ( String tableName, String>.Dictionary data ) : bool

Allows the programmer to easily insert into the DB

SQLiteDatabase ( ) : System

Default Constructor for SQLiteDatabase Class.

SQLiteDatabase ( String>.Dictionary connectionOpts ) : System

Single Param Constructor for specifying advanced connection options.

SQLiteDatabase ( String inputFile ) : System

Single Param Constructor for specifying the DB file.

Update ( String tableName, String>.Dictionary data, String where ) : bool

Allows the programmer to easily update rows in the DB.

Method Details

ClearDB() public méthode

Allows the programmer to easily delete all data from the DB.
public ClearDB ( ) : bool
Résultat bool

ClearTable() public méthode

Allows the user to easily clear all data from a specific table.
public ClearTable ( String table ) : bool
table String The name of the table to clear.
Résultat bool

Delete() public méthode

Allows the programmer to easily delete rows from the DB.
public Delete ( String tableName, String where ) : bool
tableName String The table from which to delete.
where String The where clause for the delete.
Résultat bool

ExecuteNonQuery() public méthode

Allows the programmer to interact with the database for purposes other than a query.
public ExecuteNonQuery ( SQLiteCommand command ) : int
command System.Data.SQLite.SQLiteCommand The SQLCommand to be run.
Résultat int

ExecuteNonQuery() public méthode

Allows the programmer to interact with the database for purposes other than a query.
public ExecuteNonQuery ( string sql ) : int
sql string The SQL to be run.
Résultat int

ExecuteScalar() public méthode

Allows the programmer to retrieve single items from the DB.
public ExecuteScalar ( string sql ) : string
sql string The query to run.
Résultat string

GetDataTable() public méthode

Allows the programmer to run a query against the Database.
public GetDataTable ( string sql ) : DataTable
sql string The SQL to run
Résultat DataTable

Insert() public méthode

Allows the programmer to easily insert into the DB
public Insert ( String tableName, String>.Dictionary data ) : bool
tableName String The table into which we insert the data.
data String>.Dictionary A dictionary containing the column names and data for the insert.
Résultat bool

SQLiteDatabase() public méthode

Default Constructor for SQLiteDatabase Class.
public SQLiteDatabase ( ) : System
Résultat System

SQLiteDatabase() public méthode

Single Param Constructor for specifying advanced connection options.
public SQLiteDatabase ( String>.Dictionary connectionOpts ) : System
connectionOpts String>.Dictionary A dictionary containing all desired options and their values
Résultat System

SQLiteDatabase() public méthode

Single Param Constructor for specifying the DB file.
public SQLiteDatabase ( String inputFile ) : System
inputFile String The File containing the DB
Résultat System

Update() public méthode

Allows the programmer to easily update rows in the DB.
public Update ( String tableName, String>.Dictionary data, String where ) : bool
tableName String The table to update.
data String>.Dictionary A dictionary containing Column names and their new values.
where String The where clause for the update statement.
Résultat bool