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
|
@ -232,11 +232,12 @@ Active Record
|
||||||
### sql.active_record
|
### sql.active_record
|
||||||
|
|
||||||
| Key | Value |
|
| Key | Value |
|
||||||
| ---------------- | --------------------- |
|
| ---------------- | ---------------------------------------- |
|
||||||
| `:sql` | SQL statement |
|
| `:sql` | SQL statement |
|
||||||
| `:name` | Name of the operation |
|
| `:name` | Name of the operation |
|
||||||
| `:connection_id` | `self.object_id` |
|
| `:connection_id` | `self.object_id` |
|
||||||
| `:binds` | Bind parameters |
|
| `:binds` | Bind parameters |
|
||||||
|
| `:cached` | `true` is added when cached queries used |
|
||||||
|
|
||||||
INFO. The adapters will add their own data as well.
|
INFO. The adapters will add their own data as well.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue