Added in https://gitlab.wikimedia.org/repos/mwbot-rs/toolforge/-/commit/f9830c13841eab937cddc95410d0ed473c142b33 / described in https://blog.legoktm.com/2022/12/27/mysql-connection-pooling-in-rust-for-toolforge.html
Related to T325501: fast-ec crash: User 's55157' has exceeded the 'max_user_connections' resource (current value: 10), T325511: fast-ec should use a connection pool.
Open notes:
- Is this the preferred API? Has it seen usage in a real-world tool?
- Are there any potential race conditions?
- Are there any potential deadlock situations?
- How can we run automated tests for this in CI?