Skip to content

3.0.0

Latest
Compare
Choose a tag to compare
@trowski trowski released this 10 Mar 17:50
v3.0.0
0eb9d1d

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 extends MysqlLink instead of MysqlExecutor 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 of MysqlColumnDefinition 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 extending SqlConnection, with SocketMysqlConnection being the implementation.
  • Removed MysqlConnector since the interface was replaced by template types on SqlConnector, i.e. SqlConnector<MysqlConfig, MysqlConnection>