Click or drag to resize

MySqlScript Class

Provides a class capable of executing a SQL script containing multiple SQL statements including CREATE PROCEDURE statements that require changing the delimiter
Inheritance Hierarchy
SystemObject
  MySql.Data.MySqlClientMySqlScript

Namespace:  MySql.Data.MySqlClient
Assembly:  MySql.Data (in MySql.Data.dll) Version: 8.0.23
Syntax
public class MySqlScript

The MySqlScript type exposes the following members.

Constructors
  NameDescription
Public methodMySqlScript
Initializes a new instance of the MySqlScript class.
Public methodMySqlScript(String)
Initializes a new instance of the MySqlScript class.
Public methodMySqlScript(MySqlConnection)
Initializes a new instance of the MySqlScript class.
Public methodMySqlScript(MySqlConnection, String)
Initializes a new instance of the MySqlScript class.
Top
Properties
  NameDescription
Public propertyConnection
Gets or sets the connection.
Public propertyDelimiter
Gets or sets the delimiter.
Public propertyQuery
Gets or sets the query.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecute
Executes this instance.
Public methodExecuteAsync
Initiates the asynchronous execution of SQL statements.
Public methodExecuteAsync(CancellationToken)
Initiates the asynchronous execution of SQL statements.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventError
Handles the event raised whenever an error is raised by the execution of a script.
Public eventScriptCompleted
Handles the event raised whenever a script execution is finished.
Public eventStatementExecuted
Handles the event raised whenever a statement is executed.
Top
See Also