activerecord-cockroachdb-adapter
activerecord-cockroachdb-adapter copied to clipboard
Support explain options
Since rails 7.1, explain can take options. The issue is that both the name of options and the formatting is different between postgres and cockroach.
https://www.cockroachlabs.com/docs/stable/explain-analyze
As of now we do not support explain analyze either due to how the code was adjusted to fit PG behaviour in 7.1.
See tests:
- test_explain_options_with_eager_loading
- test_explain_with_options_as_symbols
- test_explain_with_options_as_strings