Skip to content

Create DBSQLOperation from IDBSQLSession #280

Closed

Description

@lukesonnet

Hello!

When using executeStatement from a IDBSQLSession, the type hinting returns an IOperation which is missing several of the helpful methods in DBSQLOperation (e.g. getId()). See:

public async executeStatement(statement: string, options: ExecuteStatementOptions = {}): Promise<IOperation> {
.

Is there a way to properly return a DBSQLOperation from an IDBSQLSession so that I can safely use its methods?

Activity

  1. kravets-levko commented on Feb 13, 2025

    @kravets-levko
    Contributor

    Hi @lukesonnet! IOperation provides all the methods needed to access query result. Other methods of DBSQLOperation are not intended to be accessed by user. Re. getId: which version of the library you use? There is a property IOperation.id which contains operation ID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions