class PG::Connection
- PG::Connection
- DB::Connection
- Reference
- Object
Included Modules
Defined in:
pg/connection.crpg/escape_helper.cr
Constructors
- .new(options : DB::Connection::Options, conn_info : PQ::ConnInfo)
- .new(options : DB::Connection::Options, connection : PQ::Connection)
Instance Method Summary
-
#build_prepared_statement(query) : Statement
:nodoc:
-
#build_unprepared_statement(query) : Statement
:nodoc:
-
#clear_time_zone_cache
Clears the cache for situations where the tzdata file has changed
-
#exec_all(query : String) : Nil
Execute several statements.
-
#on_notice(&on_notice_proc : PQ::Notice -> )
Set the callback block for notices and errors.
-
#on_notification(&on_notification_proc : PQ::Notification -> )
Set the callback block for notifications from Listen/Notify.
- #time_zone
- #version
Instance methods inherited from module PG::EscapeHelper
escape_identifier(str)
escape_identifier,
escape_literal(slice : Slice(UInt8))escape_literal(str) escape_literal
Constructor Detail
Instance Method Detail
Description copied from class DB::Connection
:nodoc:
Description copied from class DB::Connection
:nodoc:
def on_notification(&on_notification_proc : PQ::Notification -> )
#
Set the callback block for notifications from Listen/Notify.