MariaDB Connector 3+ has changed their callback structure.
TypeError: reject is not a function
at Connection.query (C:\Users\Nullivex\WebstormProjects\stretchfs\new\node_modules\mariadb\lib\connection.js:1338:14)
at PoolPromise._setConnectionUTC (C:\Users\Nullivex\WebstormProjects\stretchfs\new\node_modules\kado\lib\Database.js:74:14)
at PoolPromise.emit (node:events:513:28)
at Pool.emit (node:events:513:28)
at C:\Users\Nullivex\WebstormProjects\stretchfs\new\node_modules\mariadb\lib\pool.js:95:14
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
They are using promises and this implementation uses a callback. It would be best to detect the version and act accordingly.