Skip to content
Crow CI

Database

Database configuration variables for the Crow CI server.

  • Name: CROW_DATABASE_DRIVER
  • Description: Database driver.
  • Default: sqlite3

  • Name: CROW_DATABASE_DATASOURCE
  • Description: Database driver configuration string.
  • Default: /var/lib/crow/crow.sqlite, or uses an existing file if found in this order:
    1. crow.sqlite (current directory)
    2. woodpecker.sqlite (current directory)
    3. /var/lib/crow/crow.sqlite
    4. /var/lib/woodpecker/woodpecker.sqlite

  • Name: CROW_DATABASE_SCHEMA
  • Description: Database schema name. This allows running Crow in a specific PostgreSQL schema instead of the default public schema.
  • Default: none (uses database default, typically public for PostgreSQL)
  • Note: Only supported for PostgreSQL. Setting this for other database drivers will result in an error.

  • Name: CROW_DATABASE_MAX_CONNECTIONS
  • Description: Max connections xorm is allowed to create.
  • Default: 100

  • Name: CROW_DATABASE_IDLE_CONNECTIONS
  • Description: Amount of connections xorm will hold open.
  • Default: 2

  • Name: CROW_DATABASE_CONNECTION_TIMEOUT
  • Description: Time an active connection is allowed to stay open.
  • Default: 3s

  • Name: CROW_DATABASE_LOG
  • Description: Enable logging in database engine (currently xorm).
  • Default: false

  • Name: CROW_DATABASE_LOG_SQL
  • Description: Enable logging of SQL commands.
  • Default: false