Search…
8.7.0
Introduction
What's New?
Installation & Usage
Migration Guide
Contributing & Filing Issues
Query Builder
Getting a New Query
Building Queries
Executing Queries
Options and Utilities
Query Options
Clone and Reset
Return Format
Column Formatter
Parent Query
Interception Points
Debugging
Schema Builder
Overview
Create
Columns
Column Modifiers
Column Constraints
Creating Table Constraints
Alter
Drop
External Links
API Docs
Source Code
Issue Tracker
Powered By
GitBook
Interception Points
Two interception points are available from QB:
preQBExecute
and
postQBExecute
. These fire before and after the
queryExecute
call, respectively.
preQBExecute
The following information is available in the
interceptData
struct:
Name
Type
Description
sql
String
The SQL string to execute.
bindings
Struct
The struct of bindings (keys and values) for the query.
options
Struct
Any options to pass along to
queryExecute
.
returnObject
String
The type to return:
query
or
result
.
postQBExecute
The following information is available in the
interceptData
struct:
Name
Type
Description
sql
String
The SQL string to execute.
bindings
Struct
The struct of bindings (keys and values) for the query.
options
Struct
Any options to pass along to
queryExecute
.
returnObject
String
The type to return:
query
or
result
.
query
Query | null
The query object or
null
if there isn't one.
result
Struct
The query result struct.
Previous
Parent Query
Next - Query Builder
Debugging
Last modified
2yr ago
Copy link
Edit on GitHub
Contents
preQBExecute
postQBExecute