From a503c218ba2e0fdd517dbffbd15942ce0b4e7857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Garcia?= Date: Fri, 17 Sep 2021 22:06:06 -0300 Subject: [PATCH] Improve kbuilder README --- kbuilder/README.md | 6 +++++- kbuilder/insert_test.go | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/kbuilder/README.md b/kbuilder/README.md index 24f5361..de6385d 100644 --- a/kbuilder/README.md +++ b/kbuilder/README.md @@ -3,8 +3,12 @@ This is the Keep It Stupid Simple query builder created to work either in conjunction or separated from the ksql package. +This package was started after ksql and while the ksql is already +in a usable state I still don't recommend using this one since this +being actively implemented and might change without further warning. + ## TODO List -- Support Insert and Update operations +- Add support to Update and Delete operations - Improve support to JOINs by adding the `tablename` tag to the structs - Add error check for when the Select, Insert and Update attrs are all empty diff --git a/kbuilder/insert_test.go b/kbuilder/insert_test.go index 745e8bf..49f55a5 100644 --- a/kbuilder/insert_test.go +++ b/kbuilder/insert_test.go @@ -67,7 +67,7 @@ func TestInsertQuery(t *testing.T) { expectedErr: true, }, { - desc: "should report error Data contains an empty list", + desc: "should report error if `Data` contains an empty list", query: kbuilder.Insert{ Into: "users", Data: []User{},