class
CQL::Configure::Config
- CQL::Configure::Config
- Reference
- Object
Overview
The settings CQL.configure yields. Read them back with CQL.config.
Defined in:
configure.crConstructors
Instance Method Summary
-
#adapter : Adapter
Get the database adapter type
-
#adapter_options : Hash(String, String)
Custom database adapter settings
-
#adapter_options=(adapter_options : Hash(String, String))
Custom database adapter settings
-
#add_validator(validator : ConfigValidator) : Nil
Add custom validator
-
#auto_load : Bool
Auto-load model files on startup
-
#auto_load=(auto_load : Bool)
Auto-load model files on startup
-
#auto_load? : Bool
Check if auto-loading is enabled
-
#auto_sync : Bool
Keep schema file in sync with database
-
#auto_sync=(auto_sync : Bool)
Keep schema file in sync with database
-
#auto_sync? : Bool
Check if auto-sync is enabled
-
#bootstrap : Bool
Create schema from existing database on first run
-
#bootstrap=(bootstrap : Bool)
Create schema from existing database on first run
-
#bootstrap? : Bool
Check if bootstrap is enabled
-
#build_fragment_cache : CQL::Cache::FragmentCache
Create fragment cache with current settings
-
#build_memory_cache : CQL::Cache::MemoryCache
Create memory cache with current settings
-
#build_migrator(schema : Schema) : CQL::Migrator
Create a configured migrator
-
#cache : CacheConfig
Centralized cache configuration (use config.cache.* to configure)
-
#cache_stats : Hash(String, String | Int32 | Int64 | Float64 | Bool)
Get cache statistics
-
#cache_summary : String
Get cache performance summary
-
#db : String
Primary database connection URL
-
#db=(db : String)
Primary database connection URL
-
#db_config : DatabaseConfig
Get database-specific configuration
-
#effective_logger : Log
Get the effective logger with proper level
-
#env : String
Environment (auto-detects from CRYSTAL_ENV; unset means development)
- #env=(value : String)
-
#full_db_url : String
Get complete database URL with all settings applied
-
#log_level : Log::Severity
Shortcut for log level (maps to logger.level)
-
#log_level=(log_level : Log::Severity)
Shortcut for log level (maps to logger.level)
-
#logger : Log
Main application logger
-
#logger=(logger : Log)
Main application logger
-
#migrations_table : Symbol
Database table for tracking migrations
-
#migrations_table=(migrations_table : Symbol)
Database table for tracking migrations
-
#migrator_config(schema_path : String | Nil = nil, schema_class : Symbol | Nil = nil, schema_name : Symbol | Nil = nil, migrations_table : Symbol | Nil = nil, auto_sync : Bool | Nil = nil) : CQL::MigratorConfig
Create migrator configuration
-
#migrator_config_for(environment : String) : CQL::MigratorConfig
Create environment-specific migrator config
-
#monitor_performance : Bool
Enable performance monitoring and tracking
-
#monitor_performance=(monitor_performance : Bool)
Enable performance monitoring and tracking
-
#monitor_performance? : Bool
Check if performance monitoring is enabled
- #mysql : MySQLConfig
-
#pool : ConnectionPoolConfig
Detailed connection pool settings
-
#pool_size : Int32
Number of database connections in pool
- #pool_size=(size : Int32)
- #postgres : PostgreSQLConfig
-
#reset_cache! : Nil
Reset cache statistics
-
#schema_class : Symbol
Schema class name in Crystal code
-
#schema_class=(schema_class : Symbol)
Schema class name in Crystal code
-
#schema_dir : String
Directory containing schema files
-
#schema_dir=(schema_dir : String)
Directory containing schema files
-
#schema_file : String
Main schema file name
-
#schema_file=(schema_file : String)
Main schema file name
-
#schema_name : Symbol
Schema instance symbol
-
#schema_name=(schema_name : Symbol)
Schema instance symbol
-
#schema_path : String
Get full path to schema file
- #setup_cache_system : Nil
- #setup_sql_logging : Nil
- #sql_logging : Bool
- #sql_logging=(sql_logging : Bool | Nil)
-
#sql_logging? : Bool
Check if SQL logging is enabled
- #sql_logging_async : Bool
- #sql_logging_async=(sql_logging_async : Bool)
-
#sql_logging_colorize : Bool
SQL logging options
-
#sql_logging_colorize=(sql_logging_colorize : Bool)
SQL logging options
- #sqlite : SQLiteConfig
-
#ssl : SSLConfig
SSL/TLS configuration
-
#timezone : Symbol
Timezone for date/time operations
-
#timezone=(timezone : Symbol)
Timezone for date/time operations
- #validate! : Nil
-
#verify_schema : Bool
Verify schema matches database on startup
-
#verify_schema=(verify_schema : Bool)
Verify schema matches database on startup
-
#verify_schema? : Bool
Check if schema verification is enabled
Constructor Detail
Instance Method Detail
Create migrator configuration
Create environment-specific migrator config