Represents a database configuration block for connecting to a specific database. Encapsulates database connection parameters and naming conventions used during study execution.
Details
DbConfigBlock manages configuration for a single database connection within the Ulysses framework. This includes CDM schema specifications, cohort table references, and database labeling. Used within ExecOptions to manage multiple database connections.
Active Fields
configBlockName: Unique identifier for this config block (read/write)cdmDatabaseSchema: Schema name containing the CDM (read/write)cohortTable: Table name for study cohorts (read/write)databaseName: Database identifier (read/write, defaults to configBlockName)databaseLabel: Human-readable database label (read/write)
Active bindings
configBlockNameUnique identifier for this configuration block. Can be read or set with validation.
cdmDatabaseSchemaSchema name containing the CDM data. Can be read or set with validation.
cohortTableTable name for study cohorts. Can be read or set with validation.
databaseNameDatabase identifier. Can be read or set with validation. Defaults to configBlockName.
databaseLabelHuman-readable database label for display. Can be read or set with validation.
Methods
Method new()
Initialize a new DbConfigBlock instance with database configuration.
Usage
DbConfigBlock$new(
configBlockName,
cdmDatabaseSchema,
cohortTable,
databaseName = NULL,
databaseLabel = NULL
)Arguments
configBlockNameCharacter string. Unique identifier for this configuration block.
cdmDatabaseSchemaCharacter string. Schema containing CDM data.
cohortTableCharacter string. Table name for study cohorts.
databaseNameCharacter string. Optional database identifier (defaults to configBlockName).
databaseLabelCharacter string. Optional human-readable database label (defaults to databaseName).
Method writeBlockSection()
Generate a formatted configuration block section for the config file.