class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

Constants

ColumnDefinition
ColumnMethods
Table
TableDefinition

Public Class Methods

new(*args) click to toggle source
# File lib/arjdbc/postgresql/adapter.rb, line 1508
def initialize(*args)
  # @local_tz is initialized as nil to avoid warnings when connect tries to use it
  @local_tz = nil

  super # configure_connection happens in super

  @table_alias_length = nil

  initialize_type_map(@type_map = Type::HashLookupTypeMap.new) if ::ArJdbc::AR42

  @use_insert_returning = @config.key?(:insert_returning) ?
    self.class.type_cast_config_to_boolean(@config[:insert_returning]) : nil
end

Public Instance Methods

jdbc_connection_class(spec) click to toggle source
# File lib/arjdbc/postgresql/adapter.rb, line 1543
def jdbc_connection_class(spec)
  ::ArJdbc::PostgreSQL.jdbc_connection_class
end
table_definition(*args) click to toggle source
# File lib/arjdbc/postgresql/adapter.rb, line 1533
def table_definition(*args)
  new_table_definition(TableDefinition, *args)
end
update_table_definition(table_name, base) click to toggle source
# File lib/arjdbc/postgresql/adapter.rb, line 1539
def update_table_definition(table_name, base)
  Table.new(table_name, base)
end