Commit Graph

5 Commits (2e1aa80770c31029985bb632d6c16717ff581be4)

Author SHA1 Message Date
Vinícius Garcia 2e1aa80770 Breaking Change: changes the Exec() signature so it returns an extra value
The signature was updated from

- `Exec(...) (rowsAffected int64, _ error)`

To:

- `Exec(...) (ksql.Result, error)`

Result is an interface, so it should be easy to mock, we are also
providing a new builtin mock struct + constructor to make it even easier:

Building new mock Result: `ksql.NewMockResult(lastInsertID int64, rowsAffected int64) Result`
2022-02-22 16:49:48 -03:00
Vinícius Garcia 7a57e38228 Deprecate Update() in favor of a better fn name: Patch() 2022-02-22 16:14:15 -03:00
Vinícius Garcia 23efe48869 Add final tests to the Mock struct 2021-12-31 01:04:34 -03:00
Vinícius Garcia 3613ad769a Add more tests to the mocks for codecov 2021-12-31 00:41:20 -03:00
Vinícius Garcia 0ff7a92d72 Add tests for the error messages produced by the Mock() 2021-12-30 12:12:33 -03:00