377 Commits

Author SHA1 Message Date
Vinícius Garcia
06b8855621 Improve test coverate on .Transaction() 2022-08-03 20:46:32 -03:00
Vinícius Garcia
b5f2deac02 Add a few more tests to Transaction 2022-08-03 20:11:05 -03:00
Vinícius Garcia
eb1f85f8bb Remove test_adapters.go from codecov.yaml 2022-08-01 09:48:51 -03:00
Vinícius Garcia
84d523967b Improve godoc for Transaction method 2022-08-01 09:35:12 -03:00
Vinícius Garcia
c9a73d8ad1 Update README 2022-07-31 12:18:43 -03:00
Vinícius Garcia
9161634e7b Minor fix to README 2022-07-27 14:07:24 -03:00
Vinícius Garcia
b088ae0d26 Update README to include benchmark for sqlboiler 2022-07-26 23:41:56 -03:00
Vinícius Garcia
3d34bae47e Add sqlboiler to benchmarks 2022-07-26 23:20:23 -03:00
Vinícius Garcia
ed1e5ec27d Minor refactor on benchmarks organization 2022-07-26 22:17:25 -03:00
Vinícius Garcia
33e0918c14 Update README with benchmarks for sqlc/prep-stmt 2022-07-26 21:54:11 -03:00
Vinícius Garcia
fc1b4d9a3b Add sqlc/prep-stmt to Benchmark 2022-07-26 21:52:54 -03:00
Vinícius Garcia
62a19e30ac Update README with sqlc benchmark 2022-07-26 20:56:39 -03:00
Vinícius Garcia
12c774a26f Add sqlc to benchmarks 2022-07-26 20:54:28 -03:00
Vinícius Garcia
b710dd7559 Minor update to README 2022-07-26 19:55:32 -03:00
Vinícius Garcia
8fdd674c1b Improve make update recipe 2022-07-25 23:56:37 -03:00
Vinícius Garcia
bb14677c4c Update README TODO section adapters/ksqlite3/v1.4.8 adapters/kmysql/v1.4.8 adapters/ksqlserver/v1.4.8 adapters/kpgx/v1.4.8 v1.4.8 2022-07-25 23:53:30 -03:00
Vinícius Garcia
752e6bb0a1 Add some tests for the Patch function with composite keys 2022-07-25 23:47:06 -03:00
Vinícius Garcia
dc345c501b Minor refactor on tests 2022-07-25 23:04:41 -03:00
Vinícius Garcia
0425eb1123 Add test for Patch with composite keys 2022-07-25 22:49:51 -03:00
Vinícius Garcia
5328be8564 Add more tests to Delete 2022-07-25 19:59:36 -03:00
Vinícius Garcia
a269036a11 Update Makefile update recipe to also push new tags for all adapters 2022-07-19 18:47:01 -03:00
Vinícius Garcia
32470ddce4 Update adapters to use latest ksql version adapters/kpgx/v1.4.7 adapters/kmysql/v1.4.7 adapters/ksqlite3/v1.4.7 adapters/ksqlserver/v1.4.7 2022-07-19 14:15:48 -03:00
Vinícius Garcia
7ec3ef011d Remove dependency on ditointernet/go-assert v1.4.7 2022-07-16 13:31:38 -03:00
Vinícius Garcia
19429143d1
Merge pull request #24 from jadson-medeiros/change-test-lib-reference
Change the test lib reference
2022-07-10 11:53:32 -03:00
Jadson Medeiros
e464f3b6ea chenged reference from assert.NotEqual to tt.AssertNotEqual 2022-07-06 21:53:23 -03:00
Jadson Medeiros
985254ad3e applied new refactor to test lib 2022-07-06 21:43:17 -03:00
Jadson Medeiros
8a5e748330 Merge branch 'master' of https://github.com/VinGarcia/ksql into change-test-lib-reference 2022-07-06 21:16:08 -03:00
Vinícius Garcia
7adc6473b7 Update sqlserver version to see if it will work on Mac M1 2022-07-06 21:06:40 -03:00
Jadson Medeiros
2c8cde5a6a Merge branch 'master' of https://github.com/VinGarcia/ksql into change-test-lib-reference 2022-07-06 20:25:46 -03:00
Vinícius Garcia
891aa8c7b1 Fix find command to work on mac and linux 2022-07-06 20:21:23 -03:00
Vinícius Garcia
3577f0674c Update Makefile to use go install instead of the old go get 2022-07-06 20:09:50 -03:00
Vinícius Garcia
73952d0e03 Update kmysql_test.go to use mariadb instead of mysql
This change was made because the mysql image was too instable
which caused it to fail in several situations.
2022-07-06 14:34:08 -03:00
Jadson Medeiros
ab09051ab3 removed mock reference 2022-07-05 23:17:30 -03:00
Jadson Medeiros
aba0ebdca7 Merge branch 'master' of https://github.com/VinGarcia/ksql into change-test-lib-reference 2022-07-05 22:47:40 -03:00
Vinícius Garcia
1969ed1fc7 Update CI script to run on PRs 2022-07-05 22:45:16 -03:00
Jadson Medeiros
a1b97b1e9a changed the test lib reference 2022-07-05 21:43:56 -03:00
Vinícius Garcia
8d688eb2c1 Update Benchmark on README file 2022-07-04 22:20:46 -03:00
Vinícius Garcia
511aa03982
Merge pull request #23 from matheusoliveira/feat/map-sync
Use sync.Map on global caches to avoid race-condition
2022-07-04 22:16:25 -03:00
Matheus de Oliveira
db86670b6c Use sync.Map on global caches to avoid race-condition
As known, a map can't be accessed with read/write concurrently on
multiple goroutines. This just replaces all uses of global maps for
caches with sync.Map, which is safe to be used concurrently.
2022-07-04 17:28:27 -03:00
Vinícius Garcia
589ad0a693 Minor improvement to README 2022-07-04 00:08:28 -03:00
Vinícius Garcia
683d6b28ab Minor improvement to README 2022-07-04 00:03:26 -03:00
Vinícius Garcia
047107d1c3 Minor improvement to README 2022-07-04 00:01:58 -03:00
Vinícius Garcia
ee933fe94d Minor improvements to README file 2022-07-04 00:01:12 -03:00
Vinícius Garcia
df71d5a7eb Add a link to the Wiki to the start of the README file 2022-07-03 23:56:34 -03:00
Vinícius Garcia
cf93f7441a Update README by moving some specialized sections to the Wiki 2022-07-03 23:43:58 -03:00
Vinícius Garcia
be9f686a9a Update benchmarks to test ksql on its most common use-case
Before this commit we were not benchmarking ksql with the
"omit-select" feature.

This could lead people to say that this feature is actually
expensive, but it really isn't so I just updated the benchmarks
to always run with this feature.

Before doing this change I actually put both features together
on the benchmark to compare them and these are the results:

```
ksql/sql-adapter/single-row-12               17186   143286 ns/op
ksql/sql-adapter-with-omit/single-row-12     16502   142893 ns/op

ksql/sql-adapter/multiple-rows-12            15361   153890 ns/op
ksql/sql-adapter-with-omit/multiple-rows-12  15360   156075 ns/op

ksql/pgx-adapter/single-row-12               33894    68332 ns/op
ksql/pgx-adapter-with-omit/single-row-12     34563    68861 ns/op

ksql/pgx-adapter/multiple-rows-12            29677    79196 ns/op
ksql/pgx-adapter-with-omit/multiple-rows-12  28934    80422 ns/op
```

Please note that benchmarks usually run slighly slower or faster
on each attempt, so small differences like the ones presented
above are really hard to interpret.
2022-05-31 09:19:24 -03:00
Vinícius Garcia
ed0327babe Very minor refactor for removing the use of init() 2022-05-18 17:07:05 -03:00
Vinícius Garcia
9792e11b16 Minor improvement on ksql.go 2022-05-11 17:13:45 -03:00
Vinícius Garcia
3701f0f325 Simplify repo example 2022-05-07 22:30:30 -03:00
Vinícius Garcia
527c79ad1c Add an example repository showing how to use transactions 2022-05-07 22:26:27 -03:00