{"version":"1.0","type":"rich","title":"Gist 5550734","description":"This example demonstrates a Ruby on Rails configuration that enables MySQL2 database connections to support multiple statements and the FOUND_ROWS flag. It shows how to override ActiveRecord’s default connection method by defining a custom `mysql2_connection` class method that sets the `Mysql2::Client::MULTI_STATEMENTS` and `Mysql2::Client::FOUND_ROWS` flags. The code initializes a `Mysql2::Client` instance with symbolized configuration keys and passes the connection options to a new `ConnectionAdapters::Mysql2Adapter`. It relies on the `Mysql2` gem and ActiveRecord’s adapter API to handle the database connection setup.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-5550734?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}