module

Avram

Inherits Habitat::SettingsHelpers < Habitat::TempConfig

Constants

FailedQueryLog = Log.for("failed_query")
HABITAT_SETTINGS = [{decl: lazy_load_enabled : Bool = true, example: nil, validation: nil}, {decl: database_to_migrate : Avram::Database.class, example: "AppDatabase", validation: nil}, {decl: time_formats : Array(String) = [] of String, example: nil, validation: nil}, {decl: i18n_backend : Avram::I18nBackend = Avram::I18n.new, example: "Avram::I18n.new", validation: nil}, {decl: query_cache_enabled : Bool = false, example: nil, validation: nil}, {decl: setup_database_name : String = "postgres", example: nil, validation: nil}] of Nil
Log = ::Log.for(Avram)
QueryLog = Log.for("query")
SaveFailedLog = Log.for("save_failed")
VERSION = "1.5.0"

Class methods

configure
Source
initialize_logging

This subscribes to several Pulsar events. These events are triggered during query and operation events

Source
settings
Source

Instance methods

settings
Source

Macros

set_version
Source

Nested types