3.0.0
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
Mysqlto 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.
MysqlTransactionnow extendsMysqlLinkinstead ofMysqlExecutorto support nested transactions.MysqlDataTypeis 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 ofMysqlColumnDefinitionobjects corresponding to the result set rows. - The second param of
MysqlStatement::bind()now requires a string. Binding only makes sense with long strings anyway. MysqlConnectionis now an interface extendingSqlConnection, withSocketMysqlConnectionbeing the implementation.- Removed
MysqlConnectorsince the interface was replaced by template types onSqlConnector, i.e.SqlConnector<MysqlConfig, MysqlConnection>