DBAdapter client interface

interface Client {
    executeQuery(sql, ...params): Dict[];
}

Methods

Methods

  • Querying Data Using the Database Connector.

    Parameters

    • sql: string

      查询sql

    • Rest ...params: unknown[]

      sql参数

    Returns Dict[]

    Example


    import * as dbadapter from 'dbadapter';

    // The LT929__LT1227 parameter obtains the name value from the connector details page.
    let client = dbadapter.newClient("LT929__LT1227");
    let sql = "select * from t where t.id = ?";
    let resps = client.executeQuery(sql, "128");