Commit Graph

1332 Commits

Author SHA1 Message Date
Lunny Xiao 7dc8e7623c fix time tag utc (#742)
* fix time tag utc

* rename NowTime -> nowTime
2017-09-30 08:59:13 +08:00
Lunny Xiao c9690500fa add buffer Iterate support (#729) 2017-09-19 20:59:41 +08:00
Lunny Xiao 57c2ebffcb add test for unscoped delete (#728) 2017-09-19 19:24:41 +08:00
Lunny Xiao d9565718bc Add test for updated created (#727)
* add test for updated created

* more tests
2017-09-16 18:48:03 +08:00
Lunny Xiao 3101e3bc44 fix conflicts between Cols and updated (#725) 2017-09-15 09:51:15 +08:00
Lunny Xiao c29485f954 fix bugs on Get (#718) 2017-09-10 20:58:18 +08:00
Lunny Xiao 4e4538d99a fix default go test (#717) 2017-09-10 14:29:02 +08:00
Lunny Xiao e373ddb271 add time test (#716) 2017-09-10 12:24:58 +08:00
Lunny Xiao 0f250847e5 add more tests for created int64 (#715) 2017-09-10 11:55:24 +08:00
Lunny Xiao 00da75294f add more test for time default value (#714) 2017-09-10 10:51:47 +08:00
Lunny Xiao aab77ab84c refactor for value2String (#713) 2017-09-09 19:21:05 +08:00
Lunny Xiao d9eb2f5f36 Fix find bit (#712)
* fix find bit

* fix error on mysql
2017-09-09 18:56:59 +08:00
Lunny Xiao 8439b76875 fix querystring bit type (#711)
* fix querystring bit type

* fix bit type on postgres
2017-09-09 17:10:15 +08:00
Lunny Xiao 3dad119dd6 fix bug on cache specify table name (#710) 2017-09-09 13:48:14 +08:00
Lunny Xiao 265dd66928 fix bug on cache delete (#703)
* fix bug on cache delete

* fix cache issues and improve the tests
2017-09-09 11:03:34 +08:00
Lunny Xiao 763e1b21e6 Add query interface (#695)
* add query interface

* fix tests of query interface
2017-08-27 22:09:31 +08:00
Yuki Takemoto d2ffc61745 Fix broken link in README.md (#688) 2017-08-27 21:58:05 +08:00
Lunny Xiao bb639f6700 refactor query functions (#689)
* refactor query functions

* remove unused function

* remove unnecessary resetStatement and some improvements

* rename all Id to ID
2017-08-27 15:50:43 +08:00
Lunny Xiao d7f04c3cec fix query string bug when value is nil (#692) 2017-08-26 09:38:40 +08:00
Lunny Xiao a10b5aba4b reduce sessions on Sync (#685) 2017-08-20 17:05:42 +08:00
Lunny Xiao 4e7d9706bd
add new case stduygolang 2017-08-13 21:19:20 +08:00
Lunny Xiao fce6d4a34c add more error check on Get (#680) 2017-08-07 16:51:14 +08:00
Lunny Xiao f43b29056d fix bug on new engine (#679) 2017-08-07 11:33:52 +08:00
Lunny Xiao 0fdfa8d8de fix bug on update (#676) 2017-08-05 10:46:29 +08:00
lucapette 10faec1e58 Fix typo (#672) 2017-08-02 10:39:46 +08:00
Lunny Xiao c2e915ffc1
fix typo 2017-07-31 20:26:13 +08:00
Lunny Xiao e963288b0b add Decr test (#666) 2017-07-27 17:57:38 +08:00
Lunny Xiao 4524e40dda add NotIn and more tests for tag (#665) 2017-07-27 17:48:19 +08:00
Lunny Xiao 60c6346a77 add more tests for rows (#664) 2017-07-27 14:38:39 +08:00
Lunny Xiao 8849fd919e refactor for sum methods (#663) 2017-07-27 14:13:26 +08:00
Lunny Xiao f1aebd5729 hide all undocument variables on session (#660) 2017-07-27 13:32:35 +08:00
Lunny Xiao 7c2d924794 tests for close and add IsClosed() method (#659) 2017-07-26 22:25:23 +08:00
Lunny Xiao a5a917d477 add mymysql tests (#656) 2017-07-25 17:51:20 +08:00
Lunny Xiao 463b4d8da7 add more tests for Delete (#655) 2017-07-25 17:09:10 +08:00
Lunny Xiao fbf37fc795 improve count usage (#654) 2017-07-25 16:50:20 +08:00
Lunny Xiao dbc493df5e multiple Cols support (#653) 2017-07-24 22:09:47 +08:00
Lunny Xiao 8cfde0eb4b fix Conds bug on Find and add test for FindAndCount (#652) 2017-07-24 21:26:14 +08:00
Lunny Xiao 1aa1846afb Revert "support reuse session to transaction (#650)" (#651)
This reverts commit c412be2365.
2017-07-23 09:52:08 +08:00
Lunny Xiao c412be2365 support reuse session to transaction (#650) 2017-07-23 09:15:44 +08:00
Lunny Xiao 305eb27bcf improve update error when no conent to be updated (#648) 2017-07-21 16:42:23 +08:00
Lunny Xiao 774f83c1bc add Exist functions (#640) 2017-07-14 09:20:13 +08:00
Yang Luo 78795d8f13 add Xorm Adapter for Casbin as cases (#639) 2017-07-11 22:53:39 +08:00
Oleh Herych 682b827c7e More clear log (#638)
I don't see `nil` in log. I suggest the next changes 

*Before*
```
INSERT INTO `dish` (`dish_id`,`restaurant_id`,`name`,`source`,`entry_id`,`created_by`,`menu_id`,`category`,`description`,`price`,`score`,`flog_count`,`approve`,`activated`,`created_at`,`updatated_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [59639fb56d9d9437b707a434 58a313719fee7b336da70c45 Chocolate Mousse Torte fsqi 51339970   Dessert Seasonal berry sauce 0 0 0 1 false 2017-07-10 18:39:33 2017-07-10 18:39:33]
```

*After*
```
INSERT INTO `dish` (`dish_id`,`restaurant_id`,`name`,`source`,`entry_id`,`created_by`,`menu_id`,`category`,`description`,`price`,`score`,`flog_count`,`approve`,`activated`,`created_at`,`updatated_at`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) []interface {}{"59639ec16d9d943782ce2f6c", "58a313719fee7b336da70c45", "Chocolate Mousse Torte", "fsqi", "51339970", "", "", "Dessert", "Seasonal berry sauce", 0, 0, 0, 1, false, "2017-07-10 18:35:29", "2017-07-10 18:35:29"}
```
2017-07-11 09:16:07 +08:00
Mamoru Murakami 39a812d59d Topic/fix cache uint (#635)
* modify cache_test for issues #330

* fix bugs cache key when pk is defined as uint (#330)

* add comment
2017-07-06 13:03:06 +08:00
Lunny Xiao 32d688fd96 close rows if possible (#629) 2017-06-25 17:35:04 +08:00
Lunny Xiao d9e6f21d60 fix bugs cols with incr when update (#623) 2017-06-20 15:43:21 +08:00
ka1em 6dd1a9db58 Fixed spelling mistakes (#622)
Fixed spelling mistakes
  Sacn ==Scan
2017-06-19 16:08:08 +08:00
Lunny Xiao 2af18acf72 add CondDeleted method (#620) 2017-06-15 20:09:46 +08:00
Lunny Xiao eb52e0e4ae add test for get slice (#619) 2017-06-15 10:12:30 +08:00
Lunny Xiao f86679d536 Add comment support on create table [mysql only currently] (#616)
* add comment support on create table

* remove wrong file
2017-06-14 14:16:40 +08:00