Kura
Early Access: Documentation is actively evolving and may change without notice.

Configuration

All KuraDB convars, their types, defaults, and what they control.

All configuration is done through FiveM convars in your server.cfg.

Connection

set kuradb_connection_string "postgres://root:password@localhost:5432/fivem"

The connection string must be a valid PostgreSQL URI with protocol postgres:// or postgresql://.

Convars

ConvarTypeDefaultDescription
kuradb_connection_stringstringRequired. PostgreSQL connection URI
kuradb_debugbool|jsonfalseEnable debug logging. Pass true for all resources or ["res1","res2"] to filter
kuradb_slow_query_warningint200Log queries slower than this (ms)
kuradb_log_sizeint100Max log entries kept in memory
kuradb_resultset_warningint1000Warn when a result set exceeds this row count
kuradb_transaction_isolation_levelint2Default transaction isolation level
kuradb_connect_timeoutint10Connection timeout in seconds
kuradb_idle_timeoutint30Idle connection timeout in seconds
kuradb_max_connectionsint10Maximum pool size
kuradb_max_lifetimeint1800Maximum connection lifetime in seconds

Transaction isolation levels

ValueLevel
1REPEATABLE READ
2READ COMMITTED (default)
3READ UNCOMMITTED
4SERIALIZABLE

Debug commands

Toggle debug logging for specific resources at runtime from the txAdmin console:

kuradb_debug add myResource
kuradb_debug remove myResource

On this page