Stable release compatible with AMPHP v3 and fibers! 🎉
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType>
have been replaced with ResolutionType
.
- Classes and interfaces now are prefixed with
Mysql
to avoid collisions with similar names from other libraries. - Marked most classes as internal, leaving only interfaces and concrete implementations required to use the API or create a custom connector.
MysqlTransaction
now extendsMysqlLink
instead ofMysqlExecutor
to support nested transactions.MysqlDataType
is now an enum of MySQL data type codes and methods to decode data based on type.- Result set field data is now available from
MysqlResult::getColumnDefinitions()
which returns an array ofMysqlColumnDefinition
objects corresponding to the result set rows. - The second param of
MysqlStatement::bind()
now requires a string. Binding only makes sense with long strings anyway. MysqlConnection
is now an interface extendingSqlConnection
, withSocketMysqlConnection
being the implementation.- Removed
MysqlConnector
since the interface was replaced by template types onSqlConnector
, i.e.SqlConnector<MysqlConfig, MysqlConnection>