mirror of https://github.com/VinGarcia/ksql.git
Improve kbuilder README
parent
61f21409a0
commit
a503c218ba
|
@ -3,8 +3,12 @@
|
||||||
This is the Keep It Stupid Simple query builder created to work
|
This is the Keep It Stupid Simple query builder created to work
|
||||||
either in conjunction or separated from the ksql package.
|
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
|
## 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
|
- 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
|
- Add error check for when the Select, Insert and Update attrs are all empty
|
||||||
|
|
|
@ -67,7 +67,7 @@ func TestInsertQuery(t *testing.T) {
|
||||||
expectedErr: true,
|
expectedErr: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
desc: "should report error Data contains an empty list",
|
desc: "should report error if `Data` contains an empty list",
|
||||||
query: kbuilder.Insert{
|
query: kbuilder.Insert{
|
||||||
Into: "users",
|
Into: "users",
|
||||||
Data: []User{},
|
Data: []User{},
|
||||||
|
|
Loading…
Reference in New Issue