class PG::Connection

Included Modules

Defined in:

pg/connection.cr
pg/escape_helper.cr

Constructors

Instance Method Summary

Instance methods inherited from module PG::EscapeHelper

escape_identifier(str) escape_identifier, escape_literal(slice : Slice(UInt8))
escape_literal(str)
escape_literal

Constructor Detail

def self.new(options : DB::Connection::Options, conn_info : PQ::ConnInfo) #

[View source]
def self.new(options : DB::Connection::Options, connection : PQ::Connection) #

[View source]

Instance Method Detail

def build_prepared_statement(query) : Statement #
Description copied from class DB::Connection

:nodoc:


[View source]
def build_unprepared_statement(query) : Statement #
Description copied from class DB::Connection

:nodoc:


[View source]
def clear_time_zone_cache #

Clears the cache for situations where the tzdata file has changed


[View source]
def exec_all(query : String) : Nil #

Execute several statements. No results are returned.


[View source]
def on_notice(&on_notice_proc : PQ::Notice -> ) #

Set the callback block for notices and errors.


[View source]
def on_notification(&on_notification_proc : PQ::Notification -> ) #

Set the callback block for notifications from Listen/Notify.


[View source]
def time_zone #

[View source]
def version #

[View source]