Module RR::ConnectionExtenders::PostgreSQLExtender
In: lib/rubyrep/connection_extenders/postgresql_extender.rb

Provides various PostgreSQL specific functionality required by Rubyrep.

Methods

Public Instance methods

*** Moneky patch*** Returns the column objects for the named table. Fixes JRuby schema support

Disables schema extraction from table names by overwriting the according ActiveRecord method. Necessary to support table names containing dots ("."). (This is possible as rubyrep exclusively uses the search_path setting to support PostgreSQL schemas.)

Sets the schema search path as per configuration parameters

Returns an ordered list of primary key column names of the given table

Returns for each given table, which other tables it references via foreign key constraints.

  • tables: an array of table names

Returns: a hash with

  • key: name of the referencing table
  • value: an array of names of referenced tables

Returns an array of schemas in the current search path.

*** Monkey patch*** Returns the list of all tables in the schema search path or a specified schema. This overwrites the according ActiveRecord::PostgreSQLAdapter method to make sure that also search paths with spaces work (E. g. ‘public, rr’ instead of only ‘public,rr’)

[Validate]