C# Class ConfigurationSetupUtility.MySqlSetup

This class is used to aid in the manipulation of a MySQL connection string as well as running the mysql.exe process.
显示文件 Open project: GridProtectionAlliance/openHistorian

Public Methods

Method Description
ExecuteScript ( IDbConnection connection, string fileName ) : void

Executes a database script using the given connection.

ExecuteScript ( string scriptPath ) : void

Executes a SQL script using the SQL Server database engine.

ExecuteStatement ( string statement ) : void

Execute a SQL statement using the mysql.exe process.

MySqlSetup ( ) : System

Creates a new instance of the MySqlSetup class.

OpenConnection ( IDbConnection &connection ) : void

Method Details

ExecuteScript() public method

Executes a database script using the given connection.
public ExecuteScript ( IDbConnection connection, string fileName ) : void
connection IDbConnection The connection to be used to execute the script.
fileName string The path to the script to be executed.
return void

ExecuteScript() public method

Executes a SQL script using the SQL Server database engine.
public ExecuteScript ( string scriptPath ) : void
scriptPath string The path to the SQL Server script to be executed.
return void

ExecuteStatement() public method

Execute a SQL statement using the mysql.exe process.
public ExecuteStatement ( string statement ) : void
statement string
return void

MySqlSetup() public method

Creates a new instance of the MySqlSetup class.
public MySqlSetup ( ) : System
return System

OpenConnection() public method

public OpenConnection ( IDbConnection &connection ) : void
connection IDbConnection
return void