DOCS / CONFIGURATION

database settings

Database connection and migration settings (Molt).

Keys

KeyTypeDefaultDescription
urlstring$DB_URLConnection string (read from feed)
pool_sizeinteger20Maximum open connections
statement_timeoutduration30sAbort queries running longer than this
lock_timeoutduration2sAbort 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.