slackhq / hack-sql-fake

A library for testing database driven code in Hack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support AsyncMysqlQueryErrorResult and SQLFakeAsyncMysqlException

pbibra opened this issue · comments

Issue template for hack-sql-fake

Please select the options that apply

  • Feature request
  • Question
  • Suggestion
  • Typechecker errors
  • Incorrect result
  • Cripplingly bad performance
  • Crash

Follow the template for your checked checkbox and then delete the templates.

Feature request

I would like to have an implementation of `AsyncMysqlQueryErrorResult` and `SQLFakeAsyncMysqlException` that behaves similarly to `AsyncMysqlException`. 
This is an SQL/AsyncMysql feature.

`AsyncMysqlQueryErrorResult` should allow for setting the error code and error message of the result in its constructor.
`SQLFakeAsyncMysqlException` should allow for setting the `AsyncMysqlErrorResult` in its constructor.