Class NpgsqlScriptExecutor

Namespace
DbExport.Providers.Npgsql
Assembly
DbExport.Api.dll

Represents a script executor specifically designed for executing Npgsql (PostgreSQL) database scripts. This class extends the BatchScriptExecutor and overrides its behavior to handle PostgreSQL-specific use cases, such as 'CREATE DATABASE' commands and connection string adjustments for the target database.

public class NpgsqlScriptExecutor : BatchScriptExecutor, IScriptExecutor
Inheritance
NpgsqlScriptExecutor
Implements
Inherited Members

Constructors

NpgsqlScriptExecutor()

Represents a script executor specifically designed for executing Npgsql (PostgreSQL) database scripts. This class extends the BatchScriptExecutor and overrides its behavior to handle PostgreSQL-specific use cases, such as 'CREATE DATABASE' commands and connection string adjustments for the target database.

public NpgsqlScriptExecutor()

Methods

Execute(string, string)

Executes a SQL script against the specified database connection.

public override 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.