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(context) #

[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 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 version #

[View source]