325 Commits

Author SHA1 Message Date
Vinícius Garcia
6853016e34 Force the CI to run 2022-05-16 23:53:26 -03:00
Vinícius Garcia
576b0380fc Force the CI to run 2022-05-16 23:48:49 -03:00
Vinícius Garcia
6b0ee91d8f force change 2022-04-21 17:25:05 -03:00
Vinícius Garcia
37cb5e9e15 force change 2022-04-21 10:09:28 -03:00
Vinícius Garcia
445b3aa98d force change 2022-04-21 10:07:19 -03:00
Vinícius Garcia
ecd4d266db force change 2022-04-19 14:42:37 -03:00
Vinícius Garcia
99bfc0b074 force ci to run 2022-04-19 11:35:13 -03:00
Vinícius Garcia
687269d58d for ci to run 2022-04-19 11:16:54 -03:00
Vinícius Garcia
6bce16be80 Update README and examples to use defer db.Close() 2022-04-19 11:11:12 -03:00
Vinícius Garcia
d98c30e91a Force CI to run 2022-04-19 10:17:43 -03:00
Vinícius Garcia
cfb5a2af34 Testing self-hosted runners 2022-04-18 08:46:49 -03:00
Vinícius Garcia
3eb5a72123 Add more configurable constructors for all adapters 2022-04-11 20:52:40 -03:00
Vinícius Garcia
b44c7e8500 Add kpgx.NewFromPgxPool() for facilitating more complicated configs v1.4.5 2022-04-11 19:41:56 -03:00
Vinícius Garcia
1224a1b297 Mention the new ksql.Mock examples on the README 2022-04-06 18:32:37 -03:00
Vinícius Garcia
2bf3a1a124 Create new example test showing how to use ksql.Mock{} 2022-04-06 18:29:28 -03:00
Vinícius Garcia
d229767d98 Add tls.Config to ksql.Config v1.4.4 2022-04-03 21:28:49 -03:00
Vinícius Garcia
660904718b Update README with some ksql.Mock examples 2022-03-29 23:03:46 -03:00
Vinícius Garcia
a59940361d Run the benchmark tests on CI 2022-03-27 10:22:15 -03:00
Vinícius Garcia
c2c8d02a1b Fix test coverage issue 2022-03-27 10:16:51 -03:00
Vinícius Garcia
1ce6aa9634 Remove kmysql tests from CI, it failts too often
The mysql container is failing to start too often, which is
forcing me to rerun the CI several times just so the kmysql tests pass
2022-03-27 09:58:23 -03:00
Vinícius Garcia
4e3cc96919 Update Makefile to run all tests locally 2022-03-27 09:49:18 -03:00
Vinícius Garcia
60835ac429 Fix go.mod on examples module 2022-03-27 09:46:29 -03:00
Vinícius Garcia
34d0fc0236 Fix run-all-tests.sh script so it adds the replace directive 2022-03-27 09:40:34 -03:00
Vinícius Garcia
f6ed380095 Fix false failed build by forcing it to run again
I made no changes in the code but because of how codecov works
it is falsely reporting that the test coverage changed to a lower
value.
2022-03-26 22:18:28 -03:00
Vinícius Garcia
9ff5f70753
Merge pull request #17 from VinGarcia/fix-issue-with-module-version
Try to fix go modules issue
v1.4.3
2022-03-26 22:03:50 -03:00
Vinícius Garcia
0dfb810693 Try to fix go modules issue 2022-03-26 21:06:10 -03:00
Vinícius Garcia
fe4530f983
Merge pull request #14 from VinGarcia/refactor-all-adapters-as-modules
Refactor all adapters as Go modules
v1.4.2
2022-03-15 21:06:31 -03:00
Vinícius Garcia
eb46b454cb Simplify run-all-tests script 2022-03-15 21:01:14 -03:00
Vinícius Garcia
1d396f8cac Fix linter complaints 2022-03-15 20:55:18 -03:00
Vinícius Garcia
18377f18f9 Try to fix codecov on CI 2022-03-15 19:55:08 -03:00
Vinícius Garcia
b6986e5fd1 Fix benchmarks submodule 2022-03-15 19:41:34 -03:00
Vinícius Garcia
9b7e5ddfbc Run go mod tidy on the ksql module 2022-03-15 17:02:52 -03:00
Vinícius Garcia
04e5e5da7b Update the README.md TODO list 2022-03-15 16:59:09 -03:00
Vinícius Garcia
8eb3c86410 Refactor all adapters as separate modules 2022-03-15 13:03:41 -03:00
Vinícius Garcia
bf9181566b Extract newDBAdapter as an argument from RunTestsForAdapter
Before this commit we were declaring it inside the RunTestsForAdapter
function, now we declare it outside this function.

This is necessary so we can move the adapters to its respective modules.
2022-02-28 23:53:02 -03:00
Vinícius Garcia
a77bd26473 Minor refactor simplifying the arguments to the adapter tests 2022-02-28 23:49:18 -03:00
Vinícius Garcia
5337a9a59e Simplify ScanRows test 2022-02-28 23:18:15 -03:00
Vinícius Garcia
a51e9730c3 Refactor tests so the error descriptions are more clear 2022-02-28 22:47:36 -03:00
Vinícius Garcia
ea4f56fadd Improve ScanRowsTest() so its decoupled from the adapters 2022-02-28 22:36:54 -03:00
Vinícius Garcia
492dd478e0 Reorganize how the adapters tests are executed 2022-02-26 14:42:54 -03:00
Vinícius Garcia
e920ef6216 Refactor adapter tests to a separated file 2022-02-26 11:52:44 -03:00
Vinícius Garcia
dbf6200f2c Refactor TestConfigSetDefaultValues so it breaks if we add more attributes 2022-02-26 10:52:20 -03:00
Vinícius Garcia
a26397cd07 Refactor TestScanRows so its decoupled from the adapters 2022-02-26 10:49:12 -03:00
Vinícius Garcia
711cf4351f Add the deprecated kstructs package to codecov ignore list 2022-02-22 22:56:01 -03:00
Vinícius Garcia
3ce7f53084 Add deprecation notices on all functions of the kstructs package 2022-02-22 22:55:06 -03:00
Vinícius Garcia
06b871a418 Deprecate kstructs in favor of ksqltest 2022-02-22 22:41:15 -03:00
Vinícius Garcia
9b18a8fbcf Minor improvements on the text of the README file 2022-02-22 22:40:37 -03:00
Vinícius Garcia
4c3ee41976 Add tests for the new ksql.MockResult struct 2022-02-22 17:24:57 -03:00
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