Skip to main content

DbConfig

This class is used to for initiating the database connection with the store that holds registered entities (e.g. workflows, tasks, launch plans...)

Attributes

AttributeTypeDescription
DeprecatedHoststringPlease use Postgres.Host
DeprecatedPortintPlease use Postgres.Port
DeprecatedDbNamestringPlease use Postgres.DbName
DeprecatedUserstringPlease use Postgres.User
DeprecatedPasswordstringPlease use Postgres.Password
DeprecatedPasswordPathstringPlease use Postgres.PasswordPath
DeprecatedExtraOptionsstringPlease use Postgres.ExtraOptions
DeprecatedDebugboolPlease use Postgres.Debug
EnableForeignKeyConstraintWhenMigratingboolWhether to enable gorm foreign keys when migrating the db.
MaxIdleConnectionsintmaxIdleConnections sets the maximum number of connections in the idle connection pool.
MaxOpenConnectionsintmaxOpenConnections sets the maximum number of open connections to the database.
ConnMaxLifeTimeconfig.Durationsets the maximum amount of time a connection may be reused.
Postgres[PostgresConfig](postgresconfig.md?sid=flytestdlib_database_postgresconfig)Postgres configuration.