Commit Graph

20 Commits

Author SHA1 Message Date
An Tao 4f8290b589
Remove non standard macros (#415) 2020-04-25 02:12:44 +08:00
An Tao 810896c94c
Fix warnings on Windows (#368) 2020-03-01 11:50:47 +08:00
An Tao 40ffb2d2af
Modify some code styles (#298) 2019-11-21 11:27:47 +08:00
An Tao 876e21f492
Implement relationships in ORM (#288) 2019-10-26 23:44:31 +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 6ef7cffabb
Add the schema option for creating models (pg database only) (#238) 2019-09-10 13:46:10 +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 787120dda4 Add support for sqlite3 models 2018-12-29 13:12:36 +08:00
antao 71faac9fb2 Modify the drogon_ctl 2018-12-07 19:08:17 +08:00
antao 032aa19a53 Modify file formats and comments 2018-12-07 15:50:18 +08:00
an-tao afe0eca5e8 Fix a compiler warning 2018-12-04 22:46:33 +08:00
antao a0bdcdaae3 Fix a bug of the MysqlResultImpl 2018-12-03 10:13:31 +08:00
antao 21cb1b482a Start adding mysql(mariadb) support 2018-12-03 10:13:31 +08:00
antao 750d31f107 Support for trantor::Date type in database parameter binding 2018-11-17 11:40:17 +08:00
antao 13d13ed240 Organize the format of files 2018-11-16 13:26:14 +08:00
antao c2d23abe9f Use shared_ptr to PgClientImpl 2018-11-11 12:02:48 +08:00
antao 4e060b7726 Support date type in ORM 2018-11-09 15:46:39 +08:00
antao 0179816c19 Fix a bug for the system without database 2018-11-09 15:46:39 +08:00
antao 0d77fa1490 Improve the function of creating models 2018-11-09 15:46:38 +08:00