Interface DbServer
This object provides access to methods that allow executing queries on system pre-configured datasources.
In order to initialize this object, a pre-configured datasource name must be provided:
var db = new DbServer("myDatasource");
Methods list
Methods
query(query)
Executes a named query, pre-configured in the system.
In the table results returned, the first row is always the column names.
Declaration
query(query: string): Promise<any[][]>;
Parameters
| Type | Name | Description |
|---|---|---|
| string | query |
Returns
| Type | Description |
|---|---|
| Promise<any[][]> |