mirror of https://github.com/VinGarcia/ksql.git
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` |
||
---|---|---|
.. | ||
example_service.go | ||
example_service_test.go | ||
mocks.go |