Creates a MySQL/MariaDB adapter wired to a Hyperdrive binding.
The client is created once per request and reused for every statement in that
request. See createHyperdrivePostgresProvider for why per-statement
clients are the wrong unit and why a module-scoped client is not the fix.
The factory must return one connection, such as a mysql2 connection, with
query for transaction control. Batches work as they do for
createHyperdrivePostgresProvider.
Creates a MySQL/MariaDB adapter wired to a Hyperdrive binding.
The client is created once per request and reused for every statement in that request. See createHyperdrivePostgresProvider for why per-statement clients are the wrong unit and why a module-scoped client is not the fix.
The factory must return one connection, such as a
mysql2connection, withqueryfor transaction control. Batches work as they do for createHyperdrivePostgresProvider.