C# Class Schumix.Framework.Database.SQLite

Datei anzeigen Open project: Schumix/Schumix2

Public Methods

Method Description
Delete ( string sql ) : bool
Delete ( string TableName, string Where ) : bool
ExecuteNonQuery ( string sql, bool logerror = true ) : void
Insert ( string sql ) : bool
Insert ( string TableName, string Values ) : bool
IsCreatedTable ( string Table ) : bool
Query ( string query, bool logerror = true ) : DataTable

Executes the given query on the database.

QueryFirstRow ( string query ) : DataRow

Executes the given query on the database and returns the result's first row.

RemoveTable ( string Table ) : bool
SQLite ( ) : System
SQLite ( string file ) : System
Update ( string sql ) : bool
Update ( string TableName, string Set ) : bool
Update ( string TableName, string Set, string Where ) : bool

Private Methods

Method Description
Crash ( System.Data.SQLite.SQLiteException s, bool logerror, bool c = false ) : void
Initialize ( string file ) : bool
IsConnect ( ) : void

Method Details

Delete() public method

public Delete ( string sql ) : bool
sql string
return bool

Delete() public method

public Delete ( string TableName, string Where ) : bool
TableName string
Where string
return bool

ExecuteNonQuery() public method

public ExecuteNonQuery ( string sql, bool logerror = true ) : void
sql string
logerror bool
return void

Insert() public method

public Insert ( string sql ) : bool
sql string
return bool

Insert() public method

public Insert ( string TableName, string Values ) : bool
TableName string
Values string
return bool

IsCreatedTable() public method

public IsCreatedTable ( string Table ) : bool
Table string
return bool

Query() public method

Executes the given query on the database.
public Query ( string query, bool logerror = true ) : DataTable
query string
logerror bool
return DataTable

QueryFirstRow() public method

Executes the given query on the database and returns the result's first row.
public QueryFirstRow ( string query ) : DataRow
query string Query to execute
return DataRow

RemoveTable() public method

public RemoveTable ( string Table ) : bool
Table string
return bool

SQLite() public method

public SQLite ( ) : System
return System

SQLite() public method

public SQLite ( string file ) : System
file string
return System

Update() public method

public Update ( string sql ) : bool
sql string
return bool

Update() public method

public Update ( string TableName, string Set ) : bool
TableName string
Set string
return bool

Update() public method

public Update ( string TableName, string Set, string Where ) : bool
TableName string
Set string
Where string
return bool