Commit Graph

72 Commits (3ce7f530844b47cfc8952a049a204de7cb32b018)

Author SHA1 Message Date
Vinícius Garcia 9b18a8fbcf Minor improvements on the text of the README file 2022-02-22 22:40:37 -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 53c48aecce Update benchmarks 2022-01-20 18:54:08 -03:00
Vinícius Garcia 00f4a6ceae Improve the read examples 2022-01-10 21:47:52 -03:00
Vinícius Garcia d98cf857c0 Improve README 2021-12-28 21:11:09 -03:00
Vinícius Garcia 9be7f9fe35 Improve README 2021-12-28 21:10:23 -03:00
Vinícius Garcia 348fd0cec8 Reorder the badges on the README file 2021-12-28 21:09:17 -03:00
Vinícius Garcia d7bbf441c4 Fix CI badge after renaming the ci.yml file 2021-12-28 21:08:47 -03:00
Vinícius Garcia 23fc43e523 Improve README 2021-12-28 21:07:48 -03:00
Vinícius Garcia bb7e3bdc23 Add code coverage badge to README 2021-12-28 20:22:35 -03:00
Vinícius Garcia a31ae530a9
Merge pull request #10 from VinGarcia/v2.0.0
This PR includes one breaking change:

- The `Provider.Exec` function now returns 2 values instead of only the error, the extra argument is the number of affected rows.

This PR also adds:

- CI with tests and linter
- Dockertest for making tests easier to run not only on CI but also on local machines for contributors
- Some bug fixes: Now we are handling a few edge cases better:
  * If a struct has duplicated ksql tag names we will return an error instead of failing silently
  * If a struct has no ksql tags we will return an error instead of failing on the query
  * If a struct has attributes with no ksql tags they will be safely ignored instead of causing an error
  * If a jointed table struct has an extra attribute with no `tablename` tag it will be ignored too because having an error for this would be more confusing than just ignoring it.
2021-12-23 23:19:34 -03:00
Vinícius Garcia 733dc2b20b Add status badge 2021-12-22 22:19:00 -03:00
Vinícius Garcia 9a30559efa Improve README 2021-12-15 00:27:44 -03:00
Vinícius Garcia 70cfbccce2 Update README to include the new instructions on how to run the tests 2021-12-15 00:20:51 -03:00
Vinícius Garcia 6a4ec2cd51 Update Exec signature to return the number of affected rows 2021-11-26 22:13:56 -03:00
Vinícius Garcia 97e248916c
Update README.md 2021-11-25 17:47:26 -03:00
Vinícius Garcia a1403dc9d3 Simplify the signature of the Delete() method
This change was finally made because the Delete function was the
only helper function that was not returning the ksql.ErrRecordNotFound
when no rows were found.

The other reason for this change is that we the most common use case is
by far for deleting a single element, and the philosophy of the library
is to optimize for the most common use-cases.

For making it easier to write queries for deleting many items
as well as many other less common use cases we
are already implementing the `kbuilder` package which is a
query builder.
2021-11-22 19:42:33 -03:00
Vinícius Garcia 40215d8099 Minor improvement on README file 2021-11-16 21:55:09 -03:00
Vinícius Garcia cb3d8eb572 Update benchmarks on README to include sql with prep statements 2021-11-16 21:18:23 -03:00
Vinícius Garcia fc6a9c2950 Update README with the fixed version of the benchmark 2021-11-16 20:01:56 -03:00
Vinícius Garcia 25781352cb Add adapters for each possible db technology 2021-11-14 14:54:01 -03:00
Vinícius Garcia 54f19522e6 Update benchmarks on README 2021-11-14 11:23:54 -03:00
Vinícius Garcia a4617fc3b4 Update benchmarks on README.md 2021-11-14 01:46:41 -03:00
Vinícius Garcia 0090b791d2 Update benchmark results on README.md 2021-11-14 01:14:11 -03:00
Vinícius Garcia a9c810d4a3 Update README 2021-11-07 01:59:05 -03:00
Vinícius Garcia 22fa8fdfa4 Improve the description of the Provider interface 2021-09-03 11:08:52 -03:00
Vinícius Garcia 6e3e558407 Update benchmark on README 2021-08-01 15:20:22 -03:00
Vinícius Garcia ec749af84c Update benchmarks by running the PGx adapter benchmarks 2021-08-01 11:57:03 -03:00
Vinícius Garcia c1a44c8e56 Update benchmark on README 2021-07-31 19:09:05 -03:00
Vinícius Garcia e73db4a216 Abstract the DBAdapter so that we can support other sql adapters
This was done for a few different reasons:

1. This allows us to work on top of the pgx client in the future
2. This would allow our users to implement their own DBAdapters
   to use with our tool.
3. This gives the users the option of using advanced configs
   of any sql client they want to use and just feed us with it
   after the configuration is done, which means we will not have
   to worry about supporting a growing number of configurations
   as we try to add support to more drivers or if we get issues
   asking for more advanced config options.
2021-07-31 18:55:08 -03:00
Vinícius Garcia b6e6667a3f Improve the names of some public types *breaking change* 2021-06-28 17:35:46 -03:00
Vinícius Garcia 5b351c8ba2 Rename package structs to kstructs so its unambiguous 2021-06-11 12:53:56 -03:00
Vinícius Garcia 20f49eb22b Reorganize files so the test helpers are grouped in the same pkg 2021-06-11 12:25:24 -03:00
Vinícius Garcia 75330a12c5 Update benchmark on README 2021-06-06 21:11:05 -03:00
Vinícius Garcia cc4e73dc62 Update README to describe the new interface 2021-06-06 20:56:20 -03:00
Vinícius Garcia 936d387221 Minor improvment on README 2021-06-06 10:10:01 -03:00
Vinícius Garcia 1e434b0b78 Fix code identation on README.md 2021-06-03 23:22:03 -03:00
Vinícius Garcia 208ce07d6e
Update README.md 2021-06-03 23:00:19 -03:00
Vinícius Garcia 3c57bcf1d7 Minor improvement in README 2021-06-03 22:56:50 -03:00
Vinícius Garcia 2ad920968a Update README to explain the composite structs feature 2021-06-03 22:54:39 -03:00
Vinícius Garcia 4e201031b7 Update README to include the feature of generating the SELECT part of the query 2021-05-23 15:04:24 -03:00
Vinícius Garcia d8ca3cab8d Improve README intro 2021-05-19 23:44:03 -03:00
Vinícius Garcia d275555df5 Update TODO list 2021-05-15 10:53:12 -03:00
Vinícius Garcia cb84b02e2e Improve README so the fact that the benchmark results are good is enphasized 2021-05-10 09:38:45 -03:00
Vinícius Garcia 56aa77135c Add support to the `sqlserver` driver =] 2021-05-09 22:33:03 -03:00
Vinícius Garcia 2dd55131d5 Add README instructions on how to run the tests 2021-05-08 13:02:01 -03:00
Vinícius Garcia 398f7f43d7 Update README code example to use the new constructor 2021-04-06 10:21:07 -03:00
Vinícius Garcia 1fc58339fb Update README 2021-03-12 11:05:12 -03:00
Vinícius Garcia 8b8fb092d8 Replace all instances of lower-cased kisssql for ksql 2021-03-10 10:11:18 -03:00
Vinícius Garcia 3d14ed0296 Add an example call to the Transaction function on README 2021-03-08 16:11:59 -03:00