oxmysql, with prepared statements only.
Requirements
- MySQL 8.0 or newer, or MariaDB 10.6 or newer. Older servers stop boot with
Database: MySQL 8.0 or MariaDB 10.6+ is required, found MySQL 5.7.44. mysql_connection_stringset inserver.cfg.oxmysqlstarted beforeug-core.
Database: no connection after 30 s. Check oxmysql and mysql_connection_string.
Migrations
Each module creates and updates its own tables with versioned migrations. They run on boot, in version order, before the module loads. Applied versions are stored inug_migrations:
Tables
Disabling a module never drops its tables.
Money is always traceable
Every balance change writes a ledger row in the same transaction: amount, balance after, reason and the other character for transfers. If the write fails, the change is undone.Items are always traceable
Every item change writes a row toug_item_logs, saved in the same transaction as the inventory, so the log never shows a change the inventory lost. Read it with Inventory.GetLog.