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
| Attribute | Type | Description |
|---|---|---|
| DeprecatedHost | string | Please use Postgres.Host |
| DeprecatedPort | int | Please use Postgres.Port |
| DeprecatedDbName | string | Please use Postgres.DbName |
| DeprecatedUser | string | Please use Postgres.User |
| DeprecatedPassword | string | Please use Postgres.Password |
| DeprecatedPasswordPath | string | Please use Postgres.PasswordPath |
| DeprecatedExtraOptions | string | Please use Postgres.ExtraOptions |
| DeprecatedDebug | bool | Please use Postgres.Debug |
| EnableForeignKeyConstraintWhenMigrating | bool | Whether to enable gorm foreign keys when migrating the db. |
| MaxIdleConnections | int | maxIdleConnections sets the maximum number of connections in the idle connection pool. |
| MaxOpenConnections | int | maxOpenConnections sets the maximum number of open connections to the database. |
| ConnMaxLifeTime | config.Duration | sets the maximum amount of time a connection may be reused. |
| Postgres | [PostgresConfig](postgresconfig.md?sid=flytestdlib_database_postgresconfig) | Postgres configuration. |