1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/connection_adapters
eileencodes e3b4a462f7
Add ability to ignore tables in the schema cache
In cases where an application uses pt-osc or lhm they may have
temporary tables being used for migrations. Those tables shouldn't be
included by the schema cache because it makes the cache bigger and those
tables shouldn't ever be queried by the application. This feature allows
applications to configure a list of or regex of tables to ignore. The
behavior for ignored tables for each method in the schema cache
(`columns`, `columns_hash`, `primary_keys`, and `indexes`) matches the
behavior of a non-existent table. `columns` and `columns_hash` will
raise a database not found error, `primary_keys` will return `nil`. and
`indexes` will return an empty array. See #43105 which make behavior
across adapters consistent.

To use in an application configure `config.active_record.schema_cache_ignored_tables`
to an array of tables or regex's. Those tables will not be included in
the schema cache dump.
2021-08-26 15:04:34 -04:00
..
adapter_leasing_test.rb Fix preventing writes for ApplicationRecord 2021-01-06 09:19:19 -05:00
connection_handler_test.rb Move test to more correct file 2021-06-23 10:25:29 -04:00
connection_handlers_multi_db_test.rb Revert "Disable automatic write protection on replicas" 2021-06-25 11:35:51 -04:00
connection_handlers_multi_pool_config_test.rb
connection_handlers_sharding_db_test.rb Revert "Disable automatic write protection on replicas" 2021-06-25 11:35:51 -04:00
connection_swapping_nested_test.rb Revert "Disable automatic write protection on replicas" 2021-06-25 11:35:51 -04:00
legacy_connection_handlers_multi_db_test.rb Revert "Disable automatic write protection on replicas" 2021-06-25 11:35:51 -04:00
legacy_connection_handlers_sharding_db_test.rb Revert "Disable automatic write protection on replicas" 2021-06-25 11:35:51 -04:00
merge_and_resolve_default_url_config_test.rb Connection specification now passes the "url" key to the adapter 2021-01-22 20:24:33 +00:00
mysql_type_lookup_test.rb
schema_cache_test.rb Add ability to ignore tables in the schema cache 2021-08-26 15:04:34 -04:00
standalone_connection_test.rb Add more methods to NullPool 2021-04-08 10:58:07 -07:00
type_lookup_test.rb