Class: Tasker::Types::DatabaseConfig
- Inherits:
-
BaseConfig
- Object
- Dry::Struct
- BaseConfig
- Tasker::Types::DatabaseConfig
- Defined in:
- lib/tasker/types/database_config.rb
Overview
Configuration type for database settings
This configuration handles database connection settings for Tasker. It provides the same functionality as the original DatabaseConfiguration but with dry-struct type safety and immutability.
Constant Summary collapse
- NameType =
Database name or configuration key type that accepts strings or symbols
Types::String | Types::Symbol
Instance Attribute Summary collapse
-
#enable_secondary_database ⇒ Boolean
readonly
Whether to use secondary database.
-
#name ⇒ String, ...
readonly
Named database configuration key.
Method Summary
Methods inherited from BaseConfig
Constructor Details
This class inherits a constructor from Tasker::Types::BaseConfig
Instance Attribute Details
#enable_secondary_database ⇒ Boolean (readonly)
Returns Whether to use secondary database.
36 |
# File 'lib/tasker/types/database_config.rb', line 36 attribute :enable_secondary_database, Types::Bool.default(false) |
#name ⇒ String, ... (readonly)
Returns Named database configuration key.
30 |
# File 'lib/tasker/types/database_config.rb', line 30 attribute? :name, NameType.optional.default(nil) |