Sha256: 8c004bfc67bb69bf9a04dc65d2d768efa700c60dceb59cfe128f8b8ed0ec2545
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
module Scenic module Adapters class Mysql # Decorates an ActiveRecord connection with methods that help determine # the connections capabilities. # # Every attempt is made to use the versions of these methods defined by # Rails where they are available and public before falling back to our own # implementations for older Rails versions. # # @api private class Connection < SimpleDelegator # True if the connection supports materialized views. # # Delegates to the method of the same name if it is already defined on # the connection. This is the case for Rails 4.2 or higher. # # @return [Boolean] def supports_materialized_views? false end # True if the connection supports concurrent refreshes of materialized # views. # # @return [Boolean] def supports_concurrent_refreshes? false end private def undecorated_connection __getobj__ end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scenic_mysql-0.1.3 | lib/scenic/adapters/mysql/connection.rb |
scenic_mysql-0.1.2 | lib/scenic/adapters/mysql/connection.rb |