mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #26683 from y-yagi/add_cached_key_to_sql_active_record_event
add `cached` key to `sql.active_record` event [ci skip]
This commit is contained in:
commit
da0fdd6bf5
1 changed files with 7 additions and 6 deletions
|
@ -231,12 +231,13 @@ Active Record
|
|||
|
||||
### sql.active_record
|
||||
|
||||
| Key | Value |
|
||||
| ---------------- | --------------------- |
|
||||
| `:sql` | SQL statement |
|
||||
| `:name` | Name of the operation |
|
||||
| `:connection_id` | `self.object_id` |
|
||||
| `:binds` | Bind parameters |
|
||||
| Key | Value |
|
||||
| ---------------- | ---------------------------------------- |
|
||||
| `:sql` | SQL statement |
|
||||
| `:name` | Name of the operation |
|
||||
| `:connection_id` | `self.object_id` |
|
||||
| `:binds` | Bind parameters |
|
||||
| `:cached` | `true` is added when cached queries used |
|
||||
|
||||
INFO. The adapters will add their own data as well.
|
||||
|
||||
|
|
Loading…
Reference in a new issue