Skip to main content

Database

The Database tab sets your project's database connection. Go to SettingsDatabase to access these settings.

Database configuration

SettingDefaultDescription
Database TypePostgreSQLThe database system to use.
HostlocalhostDatabase server hostname or IP address.
Port5432Database server port.
Username(required)Database username for authentication.
Password(hidden)Database password. Click the eye icon to reveal.
Database Name(required)Name of the database to connect to.

Connection pool settings

Set the database connection pool behavior.

SettingDefaultDescription
Maximum Connections20Maximum number of connections in the pool.
Minimum Connections5Minimum number of connections in the pool.
Idle Timeout (ms)30000Time in milliseconds after which idle connections are closed.
Acquire Timeout (ms)60000Time in milliseconds to wait for a connection from the pool.

Database sync settings

Set how the database schema synchronizes.

SettingDescription
Sync on StartupWhen turned on, syncs the database schema on application startup.
Force Recreate on SyncWhen turned on, drops and recreates tables on sync. Only visible if Sync on Startup is enabled.
Alter on SyncWhen turned on, alters tables to match the schema on sync. Only visible if Sync on Startup is enabled.
SSL EnabledWhen turned on, uses SSL for the database connection.
warning

Force Recreate on Sync drops and recreates all tables. Any data in those tables is permanently lost.

Supported databases

DatabaseStatus
PostgreSQLSupported
MySQLNot supported
SQLiteNot supported