executeQuery
Understanding the executeQuery Method
executeQuery(query: Query, model: Model): Promise<SQLResult>
Description: Generates and executes an SQL query based on the provided model and query object.
Parameters:
query
(Query): AQuery
object representing the SQL query to execute.model
(Model): AModel
object representing the data model.
Returns:
A
Promise
that resolves to anSQLResult
object or rejects with anSQLError
.
Example:
Last updated