C# Class HealthMonitoring.Persistence.MySqlDatabase

显示文件 Open project: wongatech/HealthMonitoring Class Usage Examples

Public Methods

Method Description
MySqlDatabase ( ) : System
OpenConnection ( ) : IDbConnection

Private Methods

Method Description
CreateColumn ( IDbConnection conn, string tableName, string columnName, string columnDefinition ) : void
CreateColumnAndSetValue ( IDbConnection conn, string tableName, string columnName, string columnDefinition, object value ) : void
CreateDatabaseIfNeeded ( ) : void
CreateEndpointConfig ( IDbConnection conn ) : void
CreateEndpointStats ( IDbConnection conn ) : void
CreateEndpointStatsIndex ( IDbConnection conn ) : void
CreateHealthMonitorTypesTable ( IDbConnection conn ) : void
CreateMonitorTagIndex ( IDbConnection conn ) : void
CreateMonitorTypeIndex ( IDbConnection conn ) : void
DoesColumnExists ( IDbConnection conn, string tableName, string columnName ) : bool
DoesIndexExists ( IDbConnection conn, string tableName, string indexName ) : bool
DoesTableExists ( IDbConnection conn, string tableName ) : bool

Method Details

MySqlDatabase() public method

public MySqlDatabase ( ) : System
return System

OpenConnection() public method

public OpenConnection ( ) : IDbConnection
return IDbConnection