Commit Graph

20 Commits

Author SHA1 Message Date
An Tao 4423d836f4
Add methods to get DbClient connection status (#436) 2020-05-18 08:31:18 +08:00
An Tao 4f8290b589
Remove non standard macros (#415) 2020-04-25 02:12:44 +08:00
interfector18 17b8c337f9
Standardize Row and Result api (#409)
* Standardize Row and Result api, throw specific exceptions

* Fix drogon_ctl for sqlite3 models

* Add mysql and sqlite3 tests, add exception throwing tests

* configure mysql in travis-ci

Co-authored-by: antao <antao2002@gmail.com>
2020-04-11 11:46:47 +08:00
An Tao 58702dc41e
Port drogon to Windows (#335)
Co-authored-by: mcirsta <mforce2@gmail.com>
2020-01-25 11:58:20 +08:00
An Tao fd6df92bbc
Fix an error in the batch mode of libpq. (#317) 2019-12-11 14:23:52 +08:00
An Tao 40ffb2d2af
Modify some code styles (#298) 2019-11-21 11:27:47 +08:00
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