Sha256: af58fda031605993b7beee295392573802a15cad5cd06687f9a58e446b72a7b5
Contents?: true
Size: 628 Bytes
Versions: 6
Compression:
Stored size: 628 Bytes
Contents
def using_sqlite? MakeTaggable::Utils.connection && MakeTaggable::Utils.connection.adapter_name == "SQLite" end def supports_concurrency? !using_sqlite? end def using_postgresql? MakeTaggable::Utils.using_postgresql? end def postgresql_version if using_postgresql? MakeTaggable::Utils.connection.execute("SHOW SERVER_VERSION").first["server_version"].to_f else 0.0 end end def postgresql_support_json? postgresql_version >= 9.2 end def using_mysql? MakeTaggable::Utils.using_mysql? end def using_case_insensitive_collation? using_mysql? && MakeTaggable::Utils.connection.collation =~ /_ci\Z/ end
Version data entries
6 entries across 6 versions & 1 rubygems