Vinícius Garcia
9f2ffa84f6
Update adapters to use version v1.6.0
2022-12-17 15:10:13 -03:00
Vinícius Garcia
6ff67201c9
Merge pull request #32 from VinGarcia/add-nullable-modifier
...
Add nullable modifier
2022-12-17 15:08:45 -03:00
Vinícius Garcia
226b906746
Minor fix to test
2022-12-17 14:36:18 -03:00
Vinícius Garcia
743d021f7a
Improve test by adding comment
2022-12-17 14:34:26 -03:00
Vinícius Garcia
1a1f198803
Fix linter complaint
2022-12-17 14:16:12 -03:00
Vinícius Garcia
88167361c1
Add tests to the nullable Modifier
2022-12-15 19:48:31 -03:00
Vinícius Garcia
4598800f87
Add nullable modifier
2022-12-13 22:58:19 -03:00
Vinícius Garcia
211fddf4ee
Small refactor to the Patch() function
2022-12-13 22:36:23 -03:00
Vinícius Garcia
259b3a228a
Add some comments to internal/structs/structs.go
2022-12-13 22:34:54 -03:00
Vinícius Garcia
37b26debeb
Update TODO lists on README
2022-12-13 21:52:04 -03:00
Vinícius Garcia
53ae836dc2
Fix CI
2022-12-04 20:56:54 -03:00
Vinícius Garcia
8f24194630
Add a sublicense to the kbuilder package
2022-12-04 20:48:55 -03:00
Vinícius Garcia
d8fa0557e9
Move kbuilder into the internal package
...
This package is not ready to be used yet, so it is better to keep
it unaccessible.
2022-12-04 20:46:37 -03:00
Vinícius Garcia
d6aa694f82
Update README and the README build script
2022-12-04 20:39:29 -03:00
Vinícius Garcia
e7896dc16e
Minor improvement to README.md
2022-11-29 09:51:25 -03:00
Vinícius Garcia
340a320281
Update adapters to use version v1.5.1
2022-11-29 09:27:49 -03:00
Vinícius Garcia
83cf354f35
Add TDD tests for checking if context was cancelled
2022-11-29 09:18:34 -03:00
Vinícius Garcia
f4cac02602
Minor refactor on tests
2022-11-29 07:24:23 -03:00
Vinícius Garcia
13c6f3cbc6
Update adapters to use version v1.5.0
2022-11-13 14:14:18 -03:00
Vinícius Garcia
aca042b94b
Fix "make update" Makefile recipe
2022-11-13 14:13:52 -03:00
Vinícius Garcia
af37427192
Update adapters to use version v1.4.13
2022-11-13 12:56:40 -03:00
Vinícius Garcia
6c0f8ae6b1
Update all adapters to use latest version of KSQL
2022-11-13 11:02:15 -03:00
Vinícius Garcia
c5043c9ff2
Automate the process of running the benchmark and saving it to the README file
2022-11-13 10:55:10 -03:00
Vinícius Garcia
5bfb5cd92a
Improve error messages for scan errors on all adapters
2022-11-12 15:20:06 -03:00
Vinícius Garcia
d2c90f4e42
Improve docstring for global err variables
2022-11-06 13:24:40 -03:00
Vinícius Garcia
e519b3db27
Minor improvement to one test
2022-10-31 13:03:26 -03:00
Vinícius Garcia
b2e146d5e8
Merge pull request #29 from VinGarcia/add-attr-middlewares
...
Draft: Create a mechanism for users to add their own implementation of modifiers
2022-10-18 13:01:54 -03:00
Vinícius Garcia
dd8a45c5d5
Rename kmodifiers to ksqlmodifiers
2022-10-18 12:57:27 -03:00
Vinícius Garcia
a7f12b34a5
Add godoc to kmodifiers package
2022-10-18 12:55:17 -03:00
Vinícius Garcia
4890563c27
Expose some public types and functions so users can register new modifiers
2022-10-18 12:53:25 -03:00
Vinícius Garcia
ad516d5e1f
Add comment to json modifier
2022-10-18 10:50:58 -03:00
Vinícius Garcia
136ee66fe9
Fix behavior of json modifier to match what json.Unmarshal does for nil values
...
In the original implementation I thought that the `json` package
would set fields to its zero value during unmarshal if the input
JSON had a `null` value for that attribute.
After performing an small experiment I noticed this is not the case.
Thus, I have removed that behavior and now if the json contains
a `null` value for a field this field will be ignored by the
json modifier thus keeping its original value whatever it was.
2022-10-18 10:41:49 -03:00
Vinícius Garcia
e48f82c255
Improve godoc for modifiers.LoadGlobalModifier
2022-10-18 10:35:36 -03:00
Vinícius Garcia
5a7fd93467
Add one extra test for inserting with no values
2022-10-18 09:35:09 -03:00
Vinícius Garcia
511abf659d
Remove skipQueries option from modifiers since it was not working yet
2022-10-12 23:00:07 -03:00
Vinícius Garcia
f41edb427d
Add three new modifiers and fix a couple bugs
...
This commit adds these modifiers:
1. skipUpdates (with unit tests)
2. skipInserts (with unit tests)
3. skipQueries (no tests yet) (and not really working yet)
And handles two situations previously not considered:
1. Updates with no attributes will now return a properly formatted
error instead of returning a syntax error.
2. Inserts with no values will now work on SQLite, Postgres and
SQLServer
2022-10-12 22:47:33 -03:00
Vinícius Garcia
0d73ac9a18
Minor fix to the AttrModifier struct
2022-10-09 21:58:41 -03:00
Vinícius Garcia
57c0f4cade
Add timeNowUTC and timeNowUTC/skipUpdates modifiers
2022-10-09 21:49:21 -03:00
Vinícius Garcia
ae76cd5768
Merge branch 'master' of github.com:VinGarcia/ksql into add-attr-middlewares
2022-10-08 22:35:40 -03:00
Vinícius Garcia
8538d99468
Remove unnecessary dependency on github.com/pkg/errors
2022-10-08 14:56:30 -03:00
Vinícius Garcia
60233e04a8
Add sqlx/prep-stmt benchmark
2022-09-29 14:11:08 -03:00
Vinícius Garcia
fc2b32d919
Remove mention to old name KissSQL
2022-09-28 21:05:24 -03:00
Vinícius Garcia
3a9971628a
Minor fix on the crud example
2022-09-28 21:01:53 -03:00
Vinícius Garcia
c46ad0f92c
Update README.md
2022-09-28 20:42:21 -03:00
Vinícius Garcia
8cba3efa2d
Refactor modifiers so it is represented by a struct
2022-09-26 01:37:23 -03:00
Vinícius Garcia
7661ba0314
Try to fix CI again
2022-09-24 11:57:20 -03:00
Vinícius Garcia
3a0e9b6da3
Try to fix CI
2022-09-24 11:51:21 -03:00
Vinícius Garcia
9e94445cdc
Add tests to the modifiers package
2022-09-23 22:49:41 -03:00
Vinícius Garcia
41f4d5487b
Refactor modifiers into its own package
2022-09-21 22:30:20 -03:00
Vinícius Garcia
cb15295e46
Rename serializers to modifiers
2022-09-21 21:38:30 -03:00