module PgORM::Database

Extended Modules

Defined in:

pg-orm/database.cr

Class Method Summary

Class Method Detail

def self.adapter(builder : Query::Builder) : PostgreSQL #

[View source]
def self.begin_transaction : DB::Transaction #

[View source]
def self.checkout : DB::Connection #

[View source]
def self.configure(&) : Nil #

[View source]
def self.connection(&) #

[View source]
def self.exec_sql(sql : String, *args_) #

[View source]
def self.info : Info #

[View source]
def self.parse(uri : String | URI) : Nil #

Parse a postgres connection string URL. This may come from an environment variable.


[View source]
def self.pool : DB::Database #

[View source]
def self.quote(name : Symbol | String, io : IO) #

[View source]
def self.quote(name : Symbol | String) #

[View source]
def self.release : Nil #

[View source]
def self.transaction(&) #

[View source]
def self.with_connection(&) #

[View source]