Commit Graph

14 Commits

Author SHA1 Message Date
An Tao e8a6bdc245
Fix some race conditions (#270) 2019-10-04 14:17:48 +08:00
An Tao 70eda27427
Add the ability to create restful API controllers (#244)
* Add the ability to create restful API controllers

* Update the model.json template file

* Modify the 'create controller' command of the drogon_ctl

* access column values by column array indexes instead of column names when constructing an instance of a model class

* Fix a bug of mysql database

* Add some static SQL into models

* Add validations to models

* Add setToNull method to models

* Support 'where in' substatement

* Delay rendering from json to the response body. This allows users to modify the json object before sending a response.

* Add synchronous method to the HttpClient class
2019-09-30 21:34:30 +08:00
An Tao 93573c99bf
Fix the fail in travis ci (#260) 2019-09-28 20:35:05 +08:00
An Tao 0b45135391
Modify database tests (#258) 2019-09-27 17:34:02 +08:00
An Tao f940b6f2cd
Modify some stuff (#216) 2019-08-17 20:05:32 +08:00
An Tao bf88d08f78
Modify the test of postgresql database (#215) 2019-08-17 12:40:39 +08:00
An Tao 10db494556
Add database tests in the travis CI (#214) 2019-08-16 23:41:03 +08:00
antao 40087fba9c Remove config.h
Modify the CMakeLists.txt

Remove the USE_ORM macro

Update trantor

Remove some std::dynamic_pointer_cast calls
2019-07-29 14:53:41 +08:00
antao 11b6d20a69 clang-format 2019-05-18 20:39:57 +08:00
antao e5fe92c67a Change the line length limit to 80 characters 2019-05-18 11:11:45 +08:00
antao be08aba9d1 Add .clang-format 2019-05-17 22:49:09 +08:00
zhangjunjun a580f89c8b Add query test in db_test.cc for orm_lib 2019-03-20 21:56:56 +08:00
an-tao 56c2cfb609 Update tests 2018-12-03 18:12:19 +08:00
antao 20f97a78a2 Modify tests path 2018-11-27 18:29:23 +08:00