Commit Graph

1063 Commits

Author SHA1 Message Date
An Tao
5605d7d351
Fix a error in setThreadNum method (#263) 2019-10-01 01:40:22 +08:00
An Tao
56b9a320b5
Fix a error in HttpClient (#262) 2019-10-01 00:58:30 +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
2cdc060ed7
Add a setCustomContentTypeString() method to the HttpRequest class (#261) 2019-09-30 09:27:34 +08:00
Armstrong
1414704b44 add per request attribute store (#259) 2019-09-28 21:48:06 +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
eed9c06250
Fix some compilation warnings (#257) 2019-09-27 16:05:38 +08:00
Daniel Mensinger
795079531a cmake: use export namespace for Drogon::Drogon (#255)
* cmake: use ${PROJECT_NAME} instead of drogon everywere

* cmake: use export namespace instead of dummy library
2019-09-26 19:33:58 +08:00
Armstrong
ae01eb5ded fix url decode (#256)
* urldecode: should always unescaped chars
2019-09-26 10:06:09 +08:00
An Tao
569f1677ce
Fix bug with parsing json (#253) 2019-09-23 18:14:58 +08:00
An Tao
b38a01bdea
Fix a sqlite3 bug when some SQL errors occur (#252) 2019-09-23 08:59:10 +08:00
An Tao
db18f565e1
Fix bug when using 'is null' substatement in ORM (#250) 2019-09-22 21:16:53 +08:00
antao
543d1a8c80 Fix a bug when HTTP method is PUT 2019-09-16 13:01:40 +08:00
An Tao
9855fc9b4f
Fix bugs in HTTP view examples (#246) 2019-09-16 10:10:23 +08:00
An Tao
456d003482
Add prefixes to column name variables in model classes (#242) 2019-09-13 08:28:58 +08:00
An Tao
fff40952a3
Modify the method to generate the 404 page (#240) 2019-09-11 15:14:40 +08:00
An Tao
1e83a5cc4e
Fix a bug of creating models for mysql (#237) 2019-09-10 15:58:42 +08:00
An Tao
aaaba8aa97
Fix a bug of models (#239) 2019-09-10 15:14:57 +08:00
An Tao
6ef7cffabb
Add the schema option for creating models (pg database only) (#238) 2019-09-10 13:46:10 +08:00
An Tao
5d3fda57a0
Remove ClassTraits.h (#235) 2019-09-07 21:00:51 +08:00
An Tao
195bc5299e
Add comments for doxygen (#233) 2019-09-06 23:10:36 +08:00
An Tao
473b1c86f0
Fix a bug in the HttpServer class (#232) 2019-09-03 15:03:12 +08:00
An Tao
657dc840a9
Modify the processing of bool type column in ORM (#231) 2019-09-02 07:47:36 +08:00
An Tao
eb894396c7
Use find('x') instead of find(x) in a string search (#230) 2019-09-01 12:06:19 +08:00
antao
a8afbc8cee Update drogon version to v1.0.0-beta7 2019-08-31 18:39:46 +08:00
An Tao
aa26e9a903
Modify the CMakeLists to modern cmake style (#229) 2019-08-31 08:27:57 +08:00
An Tao
a0b68fb3c9
Optimize request headers processing (#228) 2019-08-27 13:55:52 +08:00
An Tao
7186a74590
Add a WebSocket test (#227) 2019-08-26 17:53:02 +08:00
An Tao
9f330f310d
Add a synchronous join point for AOP (#226) 2019-08-26 09:00:20 +08:00
An Tao
ba49a0e0e6
Update README (#225)
* Update README

* Update CMakeLists.txt
2019-08-24 22:44:37 +08:00
An Tao
4e274b1a2e
Modify the orm command of drogon_ctl (#224) 2019-08-24 18:43:05 +08:00
An Tao
043c484a64
Make the framework API support chained calls (#223) 2019-08-24 14:44:25 +08:00
An Tao
c3cb70f415
Optimize performance (#222) 2019-08-24 13:12:04 +08:00
An Tao
dcab7d54b1
Fix a bug when there's '+' in the building path (#221) 2019-08-23 16:59:55 +08:00
An Tao
b5a142a10e
Fix bugs in default return values of functions (#220) 2019-08-22 22:23:50 +08:00
Daniel Chabrowski
db99ef84ee Reduce size of docker image (#217) 2019-08-20 17:18:19 +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
An Tao
a6e2d4f007
Modify the drogon_ctl (#213) 2019-08-16 13:11:21 +08:00
An Tao
da285cd4d2
Reduce dependencies between declarations (#212) 2019-08-15 20:59:16 +08:00
An Tao
673d74191e
Optimize DNS in HttpClient and WebSocketClient (#211) 2019-08-14 04:03:29 +08:00
An Tao
a0f5570f8b
Modify HttpClient and WebSocketClient (#210) 2019-08-13 17:32:52 +08:00
An Tao
982e272703
Modify HttpClient and WebSocketClient, using the asynchronous DNS method (#209) 2019-08-13 10:35:01 +08:00
antao
16afa82688 Modify CMakeLists.txt 2019-08-10 16:08:18 +08:00
an-tao
f1409a2c2d Bump drogon version to v1.0.0-beta6 2019-08-08 22:18:17 +08:00
An Tao
c705990fe5
Add the DrogonConfig.cmake (#207)
Add DrogonConfig.cmake so that users can use drogon with the `find_package(Drogon)` command.
2019-08-08 15:17:09 +08:00
An Tao
bf9313a164
Modify the 'create view' command of drogon_ctl (#208) 2019-08-07 12:55:14 +08:00
antao
b55d53458c Update trantor 2019-08-04 00:19:15 +08:00