@exasol/exasol-driver-ts
    Preparing search index...

    Interface IStatement

    interface IStatement {
        "[asyncDispose]"(): PromiseLike<void>;
        close(): Promise<void>;
        execute(...args: unknown[]): Promise<SQLResponse<SQLQueriesResponse>>;
    }

    Hierarchy

    • AsyncDisposable
      • IStatement

    Implemented by

    Index
    • Returns PromiseLike<void>

    • Close the statement and release its connection. Must also be called when execute fails, for example in a finally block or with await using. The connection is released even if closing fails. Later calls do not close again and return the result of the first call.

      Returns Promise<void>

    • Execute the prepared statement with the given args and fetch all rows of its result sets.

      The args are the parameter values row by row: their number must be a positive multiple of the number of parameters. A statement without parameters takes no args. Otherwise the promise rejects with E-EDJS-4.

      If Exasol rejects the statement itself, the returned response has status 'error' and contains the exception. If fetching the rows fails, the promise rejects.

      Parameters

      • ...args: unknown[]

      Returns Promise<SQLResponse<SQLQueriesResponse>>