Keys
| Key | Type | Default | Description |
|---|---|---|---|
url | string | $DB_URL | Connection string (read from feed) |
pool_size | integer | 20 | Maximum open connections |
statement_timeout | duration | 30s | Abort queries running longer than this |
lock_timeout | duration | 2s | Abort migrations waiting longer than this |
Example
database:
url: $DB_URL
pool_size: 20
statement_timeout: 30s
lock_timeout: 2s
Values set here apply to every environment unless overridden in a coop.production.yolk file. Read and write values from the terminal with cluck config, and validate the whole file with cluck doctor.
NoteYolkML has no tabs, no anchors, and no surprises. Indent with two spaces, and the file will behave.