class PostgreSQLAdapter

Ruby on Rails 3.2.22.5

Since v2.2.3

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12 v3.2.22.5 v4.0.13 v4.1.16 v4.2.9 v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

The PostgreSQL adapter works both with the native C (ruby.scripting.ca/postgres/) and the pure Ruby (available both as gem and from rubyforge.org/frs/?group_id=234&release_id=1944) drivers.

Options:

  • :host - Defaults to “localhost”.

  • :port - Defaults to 5432.

  • :username - Defaults to nothing.

  • :password - Defaults to nothing.

  • :database - The name of the database. No default, must be provided.

  • :schema_search_path - An optional schema search path for the connection given as a string of comma-separated schema names. This is backward-compatible with the :schema_order option.

  • :encoding - An optional client encoding that is used in a SET client_encoding TO <encoding> call on the connection.

  • :min_messages - An optional client min messages that is used in a SET client_min_messages TO <min_messages> call on the connection.

Inherits from

ActiveRecord::ConnectionAdapters::AbstractAdapter

Namespace

Modules

Classes

Constants

Methods (defined here)

Private methods

(11) Implementation detail — not part of the public API.

Methods (inherited)

From ActiveRecord::ConnectionAdapters::AbstractAdapter (35)
From ActiveRecord::ConnectionAdapters::DatabaseLimits (10)
From ActiveRecord::ConnectionAdapters::QueryCache (8)
From ActiveSupport::Callbacks (1)
From Object (18)
From ActiveSupport::Concern (3)
From ActiveSupport::DescendantsTracker (6)

Type at least 2 characters to search.

↑↓ navigate · open · esc close