Commit Graph

237 Commits

Author SHA1 Message Date
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 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
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 4e274b1a2e
Modify the orm command of drogon_ctl (#224) 2019-08-24 18:43:05 +08:00
An Tao b5a142a10e
Fix bugs in default return values of functions (#220) 2019-08-22 22:23:50 +08:00
An Tao f940b6f2cd
Modify some stuff (#216) 2019-08-17 20:05:32 +08:00
An Tao a6e2d4f007
Modify the drogon_ctl (#213) 2019-08-16 13:11:21 +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
An Tao ba7d788184
Add options for 'Server' header and 'Date' header (#202) 2019-07-31 19:44:32 +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
An Tao 33577b9666
Format some files for good code style (#196) 2019-07-16 20:00:20 +08:00
antao b155aa1b1a Add a README file for examples 2019-07-10 17:57:47 +08:00
antao bcac1d4899 Make the number of the connections of Fast DB Clients configurable 2019-07-08 18:21:18 +08:00
antao 65173e7e97 Update trantor 2019-06-27 15:37:41 +08:00
antao c2eac3297c Fix a bug of the drogon_ctl command 2019-06-26 17:58:25 +08:00
antao 40c26f01e4 Modify the parameters of drogon_ctl command 2019-06-22 21:51:14 +08:00
antao ad2a27e849 Add stress testing command to drogon_ctl 2019-06-14 09:04:59 +08:00
antao e714ae875e Use a temporary file instead of memory to store a large Http body recieved by drogon 2019-06-06 14:59:49 +08:00
antao cdcddc8ddb Modify containers of AOP 2019-06-05 09:28:39 +08:00
antao 3452a2fa1c Modify some code to get a good style 2019-05-23 18:57:45 +08:00
antao 11b6d20a69 clang-format 2019-05-18 20:39:57 +08:00
antao e696553b3d Change the callback type in Filters and AOP Advices to the r-reference type 2019-05-09 13:57:33 +08:00
antao 00049c0d23 Change the type of the callback in HTTP request handlers to r-reference type 2019-05-09 11:25:25 +08:00
antao 66c6441c96 Return index.html to the client requesting '/' 2019-05-07 23:19:26 +08:00
antao a85c64ac69 Add two configuration options: the client_max_body_size and the client_max_websocket_message_size 2019-05-07 14:04:37 +08:00
antao 0a27394cca Change version to 0.9.33 2019-05-05 15:43:17 +08:00
antao 2efa183b93 Implement gzip_static 2019-05-03 14:44:20 +08:00
antao e48692939c Modify some interfaces 2019-04-29 14:47:23 +08:00
antao fa9376b89a Change escapes from '{{}}' to '[[]]' in views 2019-04-25 14:36:42 +08:00
antao 3a587ab90b Modify the pipeling test 2019-04-07 12:15:02 +08:00
antao b96eb04859 Add WebSocket client support 2019-04-07 00:46:22 +08:00
antao 62fad73bc9 Enhance HttpClient to support pipelining 2019-04-05 01:50:29 +08:00
antao 92fa1f83e4 Update test.sh and config.example.json 2019-03-31 18:30:06 +08:00
antao 7ffd47101f Update test.sh for testing drogon_ctl 2019-03-31 00:27:12 +08:00
antao aad06fdc3a Add support for plugins 2019-03-29 15:34:14 +08:00
antao 8ae07ce195 Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR in CMakeLists.txt files 2019-03-27 19:32:09 +08:00
antao ff3d87da13 Modify config.example.json 2019-03-27 13:11:02 +08:00
antao 66456eae1a 1. Add the getCustomCOnfig() method.
2. Add some comments.
2019-03-25 17:44:22 +08:00
antao 894b634b22 Adjust the execution order inside the run() method
Modify the configuration of fast database clients
Modify the ConfigLoader class
2019-03-23 11:26:21 +08:00
antao db72840fc2 Move utility functions to the utils namespace 2019-03-21 17:47:45 +08:00
antao 250781ac08 Add configuration options that limit the number of keep-alive requests 2019-03-12 18:22:13 +08:00
antao d63423545b Modify the drogon_ctl command 2019-03-09 10:31:58 +08:00
antao 801cb8aa35 Modify some database classes 2019-03-07 11:56:20 +08:00
antao b39dd52a87 Modify some comments 2019-03-06 15:57:05 +08:00
antao e0147fac8b Add an interface to set the 'Server' header field 2019-03-02 09:27:45 +08:00
antao 7f21f45a1b Add the fast db client enablation option 2019-02-20 13:23:50 +08:00
antao e7dbb3bbc5 Remove 'using namespace drogon' from public headers 2019-02-02 13:45:40 +08:00
antao 7041783579 Modify code style 2019-02-02 11:34:00 +08:00
antao 022132c33e Add json format response benchmark 2019-01-31 10:23:12 +08:00
antao 7c8432add0 Support http request in json format 2019-01-22 23:00:14 +08:00
an-tao d5d90d2f6f Modify code style 2019-01-21 23:59:28 +08:00
an-tao ef389b6ec9 Organize code style 2019-01-21 22:25:20 +08:00
antao a9e9ced331 Use references instead of values in range-based for loop 2019-01-21 17:39:31 +08:00
antao 01de7f4f1e Remove expired filter classes 2019-01-16 10:03:11 +08:00
antao 926ac48b49 Modify drogon_ctl 2018-12-29 18:02:39 +08:00
antao bc52c121d5 Add sqlite3 support to the configuration file 2018-12-29 17:17:50 +08:00
antao 3dc6e6c6c1 Modify eventloop in the Sqlite3Connection class 2018-12-29 16:56:50 +08:00
antao 787120dda4 Add support for sqlite3 models 2018-12-29 13:12:36 +08:00
antao 99a03159c5 Fix bugs of the Sqlite3ResultImpl class 2018-12-29 13:12:36 +08:00
antao 9ee1ee929c Update the drogon_ctl command to support sqlite3 2018-12-29 13:12:36 +08:00
antao e69697466d Update the submodule trantor 2018-12-24 10:47:20 +08:00
antao 3d8d74b78c Modify config.csp of the drogon_ctl command 2018-12-24 09:44:29 +08:00
antao c9f842fe93 Modify the help information of the drogon_ctl 2018-12-15 21:37:08 +08:00
antao 2f7fe56814 Modify the drogon_ctl 2018-12-15 21:21:39 +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
antao 87153fbf3e Update the drogon_ctl 2018-12-06 14:09:40 +08:00
an-tao afe0eca5e8 Fix a compiler warning 2018-12-04 22:46:33 +08:00
antao a72fc5e433 Update the configuration file 2018-12-04 17:11:39 +08:00
antao 78c6249bd7 Modify the drogon_ctl 2018-12-03 18:39:44 +08:00
antao 52546b7846 Modify the model generator for time-type columns 2018-12-03 10:13:31 +08:00
antao 458d14591b Modify some strings 2018-12-03 10:13:31 +08:00
antao 25548eaaa0 The mysql client works 2018-12-03 10:13:31 +08:00
antao 8ed5e19f46 Modify model creation 2018-12-03 10:13:31 +08:00
antao cba0252bc1 Add FindMySQL.cmake to the project generated by drogon_ctl 2018-12-03 10:13:31 +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 81540ca19b Add a database test 2018-11-27 17:37:41 +08:00
antao cd1139cf83 Update save methods of uploaded files 2018-11-26 16:36:57 +08:00
antao 5028f0f38f Modify the creation of models 2018-11-23 23:46:58 +08:00
antao afd1bf986a jsoncpp int64 2018-11-23 19:46:59 +08:00
antao a2c349172a Modify the creation of models 2018-11-23 10:31:45 +08:00
an-tao b9c172a4a3 Add the default ctor in model classes 2018-11-22 23:46:27 +08:00
antao f829e10dfa Modify the signature of some functions 2018-11-20 14:54:51 +08:00
antao fe16066a4b Add the toJson() method to the database model 2018-11-20 14:08:08 +08:00
antao 9ee0ef6cc8 Modify the creation of models 2018-11-20 10:54:46 +08:00
antao ad37969535 1.Fix a memory bug;
2.Support for bytea type of postgreSQL;
2018-11-19 18:15:41 +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 7611573153 Merge branch 'master' into with_orm 2018-11-15 15:04:42 +08:00
antao fd58a419a9 Rename HttpApiController to HttpController 2018-11-15 14:31:10 +08:00
antao b61e94548e Update drogon_ctl 2018-11-15 09:17:08 +08:00
antao d3931c73fd Add database client options to the configuration file 2018-11-12 13:39:22 +08:00
antao 4b8971b258 Fix some warnings 2018-11-11 18:51:39 +08:00
antao ac795dd18f Merge commit 'c2d23ab' into orm_dev 2018-11-11 12:27:17 +08:00