Sha256: f1ff0edb2c44773421933815bbfedce6e1a4fb8ac235a373fb44009a23a73e12
Contents?: true
Size: 943 Bytes
Versions: 3
Compression:
Stored size: 943 Bytes
Contents
# frozen_string_literal: true require_relative 'adapter/database_statements' require_relative 'adapter/oid' require_relative 'adapter/quoting' require_relative 'adapter/schema_creation' require_relative 'adapter/schema_definitions' require_relative 'adapter/schema_dumper' require_relative 'adapter/schema_statements' module Torque module PostgreSQL module Adapter include Quoting include DatabaseStatements include SchemaStatements # Get the current PostgreSQL version as a Gem Version. def version @version ||= Gem::Version.new( select_value('SELECT version()').match(/#{Adapter::ADAPTER_NAME} ([\d\.]+)/)[1] ) end # Add `inherits` to the list of extracted table options def extract_table_options!(options) super.merge(options.extract!(:inherits)) end end ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend Adapter end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
torque-postgresql-2.0.6 | lib/torque/postgresql/adapter.rb |
torque-postgresql-2.0.5 | lib/torque/postgresql/adapter.rb |
torque-postgresql-2.0.4 | lib/torque/postgresql/adapter.rb |