class Avram::Connection

Overview

Handles the connection to the DB.

Defined in:

avram/connection.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

blank_for_validates_required? : Bool blank_for_validates_required?

Constructor Detail

def self.new(connection_string : String, database_class : Avram::Database.class) #

[View source]

Instance Method Detail

def close : Nil #

[View source]
def connect_listen(*channels : String, &block : PQ::Notification -> ) : Nil #

[View source]
def open : DB::Database #

[View source]
def try_connection! : DB::Database #

[View source]