Optionaloptions: MySQLAdapterOptionsReadonlydatabaseConfigured database name.
Readonlyformatmysql2 SQL formatter bound to the underlying Pool.
ReadonlymysqlUnderlying mysql2 connection Pool.
Mutable copy of Adapter-specific options.
ReadonlypackageDriver package name retained for compatibility.
ReadonlyparentParent Toshihiko instance when constructed by Toshihiko.
ReadonlyusernameConfigured MySQL username.
Acquires a Pool connection and begins a transaction on it.
Commits and releases a transaction connection.
Compiles and executes COUNT(0) for a normalized Query.
Invalidates related Cache entries and performs a bulk DELETE.
Executes parameterized SQL through a selected connection or the Pool.
SQL and values are passed separately unless mysql2 formatting requires
query(), such as named placeholders or identifier placeholders.
Finds rows directly or through the Model Cache.
Reads primary keys, resolves cached rows, fetches misses with at most ten concurrent workers, and preserves the requested field projection.
Executes a compiled read without consulting or populating a Cache.
Returns the configured database name.
Inserts one row, then reads it back using generated or supplied key values.
Formats an array of condition objects joined by the requested logic.
Optionallogic: stringFormats a complete DELETE statement.
Optionaloptions: MySQLQueryOptionsFormats one logical field condition as SQL.
Optionallogic: stringFormats a complete SELECT statement.
Optionaloptions: MySQLQueryOptionsFormats an optional FORCE INDEX clause.
Optionalindex: stringFormats normalized limits as a MySQL LIMIT fragment body.
Formats normalized sort entries as an ORDER BY fragment body.
Formats logical update values as a SQL SET fragment body.
Selects the matching SQL formatter for find, count, update, or delete.
Optionaloptions: MySQLQueryOptionsFormats a complete UPDATE statement.
Optionaloptions: MySQLQueryOptionsFormats a complete Toshihiko condition as SQL.
Optionallogic: stringCopies normalized Query state into SQL-builder options.
single: true also rewrites the limit so at most one row is requested.
Rolls back and releases a transaction connection.
Updates one row using its original locator and invalidates cached copies.
Invalidates related Cache entries and performs a bulk UPDATE.
mysql2-backed Toshihiko Adapter.
Queries are compiled as parameterized SQL. Reads can use a configured Cache; writes invalidate related cached rows before execution. Transaction methods acquire and release mysql2 Pool connections.