Eliminate all records of both registered AND queued-for-release statements.
Returns null if not found
Queues all prepared statements for release.
Queue a prepared statement for release.
If already registered, simply returns the cached Payload.
Remove a statement from the queue to be released.
Lookup payload by sql string.
Common functionality for recordkeeping of prepared statement registration and queueing for unregister.
Used by Connection and MySQLPoolImpl.
Templated on payload type. The payload should be an aggregate that includes the field: bool queuedForRelease = false;
Allowing access to directLookup from other parts of mysql-native IS intentional. PreparedRegistrations isn't intended as 100% encapsulation, it's mainly just to factor out common functionality needed by both Connection and MySQLPool.