Skip to content

Internals Database Configuration

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

Database configuration constants

Bootstrap internals · Database internals · Installation Guide · Developer guide

Source: awt_data/config/awt_db.php. This is a deployment configuration file loaded by bootstrap and required by DatabaseProvider; local values may contain credentials and are deliberately omitted from the wiki.

Constant Type written by installer Purpose
DB_TYPE string Empty string selects uninstalled boot. The command accepts mysql/postgresql/sqlite, with current functional constraints described in the Installation Guide.
DB_NAME string Database name; used as dbname by the ordinary provider.
DB_HOSTNAME string Connection host; installer defaults blank input to localhost.
DB_USERNAME string PDO username; validated as nonblank by installation.
DB_PASSWORD string PDO password; installer accepts an empty value.

These global PHP constants are immutable within one process. FrameworkInstallService writes them after schema creation, escaping backslashes, quotes and dollar signs in generated PHP literals. Its connection test reuses the injected PDO in the same process; normal boot in a fresh process reconstructs a DSN from the constants. Installation is refused unless DB_TYPE is exactly empty. There is no automatic environment-variable override.

The exact installer behavior is documented in FrameworkInstallService. No deployment password should be copied into committed documentation.

Clone this wiki locally