Class FirebirdScriptExecutor

Namespace
DbExport.Providers.Firebird
Assembly
DbExport.Api.dll

Provides functionality to execute Firebird SQL scripts against a Firebird database.

public class FirebirdScriptExecutor : IScriptExecutor
Inheritance
FirebirdScriptExecutor
Implements
Inherited Members

Remarks

This class processes SQL scripts, identifies and handles specific commands such as database creation, and executes the remaining statements using the Firebird ADO.NET provider. If a "CREATE DATABASE" statement is identified within the script, the database connection string is updated, the database is created, and the statement is removed from the script before execution.

Methods

Execute(string, string)

Executes a SQL script against the specified database connection.

public void Execute(string connectionString, string script)

Parameters

connectionString string

The connection string used to connect to the database.

script string

The SQL script to be executed.