1
0
Fork 0
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:
Jon Moss 2016-10-02 08:36:40 -04:00 committed by GitHub
commit da0fdd6bf5

View file

@ -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.