Commit Graph

7 Commits (c0d7206dccb36e562e3f58155e10ff2b10887391)

Author SHA1 Message Date
Vinícius Garcia 0d3a75fe42 Add feature of nesting structs so we can reuse existing structs 2021-05-23 11:28:16 -03:00
Vinícius Garcia edecbf8191 Add feature of omiting the "SELECT" part of the query
Now the 3 functions that allow you to write plain SQL queries
also work if you omit the `SELECT ...` part of the query.

If you do this the code will check and notice that the first
token of the query is a "FROM" token and then automatically
build the SELECT part of the query based on the tags of the struct.

Everything is cached, so the impact on performance should be negligible.

The affected functions are:

- Query()
- QueryOne()
- QueryChunks()
2021-05-16 17:38:18 -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 568c61bdba Replace all ocurrencies of `KissORM` for `KissSQL` 2021-03-08 11:18:52 -03:00
Vinícius Garcia 3faaa4d152 Add feature for automatically serialize fields tagged as "*,json"
This commit implements the features, but it still needs tests
to confirm it is working.
2021-02-28 13:07:32 -03:00
Vinícius Garcia f5b7ab8028 Refactor the structInfo struct so it can accept more information 2021-02-28 12:25:42 -03:00
Vinícius Garcia 304e5bde49 Extract struct helper functions into the structs package 2021-02-16 00:01:19 -03:00