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
QueryLog = Log.for("query")
SaveFailedLog = Log.for("save_failed")
VERSION = "1.5.0"
Class methods
configure
Sourceinitialize_logging
This subscribes to several Pulsar events.
These events are triggered during query and
operation events
settings
SourceInstance methods
settings
SourceMacros
set_version
SourceNested types
- Avram::AddColumnAttributes
- Avram::AfterCommitCallback
- Avram::Associations
- Avram::Attribute(T)
- Avram::AvramError
- Avram::BaseQueryTemplate
- Avram::BetweenCriteria(T, V)
- Avram::CallableErrorMessage
- Avram::CallbackHelpers
- Avram::Callbacks
- Avram::ChronoUnits
- Avram::Connection
- Avram::ConnectionError
- Avram::Credentials
- Avram::Criteria(T, V)
- Avram::Database
- Avram::DatabaseValidations(T)
- Avram::DefineAttribute
- Avram::DeleteCallbacks
- Avram::DeleteOperation(T)
- Avram::DeleteOperationTemplate
- Avram::Engine
- Avram::Events
- Avram::Expectations
- Avram::ExtractCriteria
- Avram::Factory
- Avram::FailedMigration
- Avram::FailedOperation
- Avram::GenericAttribute
- Avram::HabitatSettings
- Avram::I18n
- Avram::I18nBackend
- Avram::ImpossibleValidation
- Avram::IncludesCriteria(T, V)
- Avram::InheritColumnAttributes
- Avram::Insert
- Avram::InvalidDatabaseNameError
- Avram::InvalidOperationError
- Avram::InvalidQueryError
- Avram::Join
- Avram::LazyLoadError
- Avram::MarkAsFailed
- Avram::Migrator
- Avram::MissingRequiredAssociationError
- Avram::Model
- Avram::NeedyInitializer
- Avram::NeedyInitializerAndDeleteMethods
- Avram::NeedyInitializerAndSaveMethods
- Avram::NestedSaveOperation
- Avram::Nothing
- Avram::Operation
- Avram::OperationErrors
- Avram::OrderBy
- Avram::OrderByClause
- Avram::OrderByRandom
- Avram::PGClientNotInstalledError
- Avram::PGNotRunningError
- Avram::ParamKeyOverride
- Avram::Paramable
- Avram::Params
- Avram::PermittedAttribute(T)
- Avram::Polymorphic
- Avram::PrimaryKeyMethods
- Avram::PrimaryKeyQueryable(T)
- Avram::PrimaryKeyType
- Avram::QueryBuilder
- Avram::Queryable(T)
- Avram::RecordNotFoundError
- Avram::Rollback
- Avram::SaveCallbacks
- Avram::SaveOperation(T)
- Avram::SaveOperationTemplate
- Avram::SchemaEnforcer
- Avram::SchemaMismatchError
- Avram::Slugify
- Avram::SoftDelete
- Avram::SpecHelper
- Avram::TableFor
- Avram::TableLockMode
- Avram::TableName
- Avram::Type
- Avram::UnsupportedQueryError
- Avram::Uploadable
- Avram::Upsert
- Avram::Validations
- Avram::Where