module PG

Defined in:

pg.cr
pg/connection.cr
pg/decoder.cr
pg/decoders/array_decoder.cr
pg/error.cr
pg/escape_helper.cr
pg/geo.cr
pg/interval.cr
pg/numeric.cr
pg/version.cr
pg_ext/big_decimal.cr
pg_ext/big_rational.cr

Constant Summary

VERSION = "0.30.0"

Class Method Summary

Macro Summary

Class Method Detail

def self.connect(url) #

Establish a connection to the database


[View source]
def self.connect_listen(url, channels : Enumerable(String), blocking : Bool = false, &blk : PQ::Notification -> ) : ListenConnection #

ditto


[View source]
def self.connect_listen(url, *channels : String, blocking : Bool = false, &blk : PQ::Notification -> ) : ListenConnection #

[View source]
def self.connect_replication(url, *, handler, publication_name, slot_name, keepalive_interval : Time::Span = 10.seconds) #

[View source]

Macro Detail

macro array_type(t, oid) #

[View source]