Commit Graph

207 Commits

Author SHA1 Message Date
An Tao ee77800821
Implement br_static (#359) 2020-02-23 17:39:03 +08:00
An Tao 71b60823da
Modify dynamic view loading algorithm (#339) 2020-02-16 17:19:16 +08:00
ihmc3jn09hk 3c15f65a7f
Add IOLoop access function. (#353)
Co-authored-by: An Tao <antao2002@gmail.com>
2020-02-16 16:48:35 +08:00
ihmc3jn09hk b733eee7e4
A small fix. (#345)
* Fix missed "password" fix for MySQL.

* Update trantor

Co-authored-by: An Tao <antao2002@gmail.com>
2020-02-08 11:08:11 +08:00
An Tao 3d8c304a47
Remove get_version.sh (#344) 2020-02-06 22:13:50 +08:00
An Tao dd5e8f8159
Support 'password' keyword in configuration files (#343)
* Support 'password' keyword in configuration files

* Update travis-ci
2020-02-04 10:58:10 +08:00
An Tao ce675c1b87
Fix a bug in views generation (#341) 2020-02-03 08:39:48 +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
antao fb2343ac74 Add location configuration for static resources (#331) 2020-01-12 11:05:38 +08:00
An Tao 1c99a8a94e
Use drogon::OStringStream instead of std::stringstream in text template (#322) 2020-01-01 16:15:11 +08:00
An Tao 5c1c73d9b6
Add the SecureSSLRedirector plugin (#306) 2019-11-30 08:35:40 +08:00
An Tao 40ffb2d2af
Modify some code styles (#298) 2019-11-21 11:27:47 +08:00
An Tao b34b3a6068
Fix a bug in dg_ctl for creating models of sqlite3 (#297) 2019-11-20 13:39:56 +08:00
An Tao a8ae91bee0
Make dg_ctl a symlink (#294) 2019-11-12 11:34:01 +08:00
An Tao dbf20200fc
Add the headers configuration option for static files (#290) 2019-10-31 15:47:12 +08:00
An Tao 876e21f492
Implement relationships in ORM (#288) 2019-10-26 23:44:31 +08:00
WojciechMigda c9076220ac Fix size_t underflow (#272)
This fixes abnormal behaviour when controller without namespace
is being created
2019-10-06 09:43:08 +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
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
An Tao 456d003482
Add prefixes to column name variables in model classes (#242) 2019-09-13 08:28:58 +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 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