Optionaloptions: AbortableQueryOptionsExecutes the query and returns the first result or undefined if the query returned no result.
Optionaloptions: AbortableQueryOptionsExecutes the query and returns the first result or throws if the query returned no result.
By default an instance of NoResultError is thrown, but you can provide a custom error class, or callback to throw a different error.
Optionaloptions:
Executes the query and returns an array of rows.
Also see the executeTakeFirst and executeTakeFirstOrThrow methods.