Top level module for holding all PostgreSQL-related modules and classes for Sequel. There are a few module level accessors that are added via metaprogramming. These are:
client_min_messages (only available when using the native adapter) - Change the minimum level of messages that PostgreSQL will send to the the client. The PostgreSQL default is NOTICE, the Sequel default is WARNING. Set to nil to not change the server default.
force_standard_strings - Set to false to not force the use of standard strings
use_iso_date_format (only available when using the native adapter) - Set to false to not change the date format to ISO. This disables one of Sequel's optimizations.
Changes in these settings only affect future connections. To make sure that they are applied, they should generally be called right after the Database object is instantiated and before a connection is actually made. For example, to use whatever the server defaults are:
DB = Sequel.postgres(...) Sequel::Postgres.client_min_messages = nil Sequel::Postgres.force_standard_strings = false Sequel::Postgres.use_iso_date_format = false # A connection to the server is not made until here DB[:t].all
The reason they can’t be done earlier is that the Sequel::Postgres module is not loaded until a Database object which uses PostgreSQL is created.
Array of exceptions that need to be converted. JDBC uses NativeExceptions, the native adapter uses PGError.
Hash with integer keys and proc values for converting PostgreSQL types.
Use a single proc for each type to conserve memory
By default, Sequel sets the minimum level of log messages sent to the client to WARNING, where PostgreSQL uses a default of NOTICE. This is to avoid a lot of mostly useless messages when running migrations, such as a couple of lines for every serial primary key field.
Generated with the Darkfish Rdoc Generator 2.