Member Junction
    Preparing search index...

    Minimal structural type for a runtime SQL-executing provider. Both SQLServerDataProvider and PostgreSQLDataProvider expose ExecuteSQL; we depend on the shape, not the concrete class, to avoid coupling this engine to a specific provider package.

    interface ISQLExecutor {
        PlatformKey?: string;
        ExecuteSQL<T = unknown>(sql: string, parameters?: unknown): Promise<T[]>;
    }
    Index

    Properties

    Methods

    Properties

    PlatformKey?: string

    Database platform of the executing provider ('sqlserver' | 'postgresql'); absent => treated as SQL Server.

    Methods

    • Execute SQL, optionally with positional bind parameters. parameters is a positional array bound as @p0,@p1,… on SQL Server (request.input('p'+i)) and $1,$2,… on PostgreSQL (node-pg values) — both MJ data providers accept this shape. Omit it for plain (DDL / no-value) statements.

      Type Parameters

      • T = unknown

      Parameters

      • sql: string
      • Optionalparameters: unknown

      Returns Promise<T[]>