Commit Graph

145 Commits

Author SHA1 Message Date
Bertrand Darbon 44a8a2d5f7
Add GNU -Werror & fix warnings (#801) 2021-04-15 19:27:15 +08:00
an-tao d665bedb5c Bump version to 1.5.1 2021-04-10 20:29:54 +08:00
an-tao 8cb327606a Bump version to 1.5.0 2021-04-10 09:40:34 +08:00
Bertrand Darbon 54727a5dbe
Add exports macro to allow Shared Library with hidden symbols by default (e.g. Windows) (#745)
Co-authored-by: an-tao <antao2002@gmail.com>
2021-04-09 10:17:28 +08:00
Martin Chang a19d0427ed
Catch exceptions thrown by handlers (#773) 2021-03-28 10:56:23 +08:00
interfector18 49181a22b2
Use canonical cmakelogic for cross compilation, (#768)
Fix clang c++20 build
2021-03-25 04:27:52 +08:00
interfector18 f29a29f2ba
Fix two building corner cases, CMake quality of life impovments (#766) 2021-03-24 10:32:55 +08:00
An Tao 6d9aa3b44c
Add redis support (#719) 2021-03-13 19:13:54 +08:00
an-tao 5dc02c3476 Bump version to 1.4.1 2021-03-07 20:42:32 +08:00
an-tao cd389aec13 Bump version to 1.4.0 2021-03-05 23:06:16 +08:00
interfector18 6542236b20
Add default value interface to sqlbinder for mysql and postgresql (#704) 2021-02-07 10:34:49 +08:00
Martin Chang a2142dd93e
Coroutine support (#693)
* app().registerHttpHandler() accepts coroutine as handlers
* HttpController can use coroutine as handlers'
* Http request handlers with coroutine catches exception instead of crashing the entire app
* DbClient now has execSqlCoro that is awaitable
* DbClient now has newTransactionCoro that is awaitable
* HttpClient have awaitable sendRequestCoro
* WebSocketClient have awaitable connectToServerCoro
* WebSocketClient have setAsyncMessageHandler and setAsyncConnectionClosedHandler
* drogon::AsyncTask and drogon::Task<T> as our corutine types
* Related tests
* Misc

Future work
* Coroutine for WebSocket server
* Known issues

co_future() and sync_wait may crash. It looks like GCC bug but I'm not sure.
Workarround: Make an coroutine of AsyncTask. Then launch said coroutine.
Not sure why wrapping the exact same thing in function crashes things.

Co-authored-by: an-tao <antao2002@gmail.com>
2021-02-06 17:05:58 +08:00
双草酸酯 2919fdb7d4
Handle cross compiling properly (Fix for #654) (#694) 2021-01-24 22:44:20 +08:00
Martin Chang 0168cd0574
Bump version in CMakeLists.txt to 1.3.0 (#692) 2021-01-17 12:03:27 +08:00
ivanka2012 d2f291689d
Fix cmake drogonctl crosscompile (#654) 2020-12-13 22:12:01 +08:00
an-tao 35b4a86e06 Bump version to 1.2.0 2020-12-12 16:33:13 +08:00
An Tao 8b7ffb28d7
Add support in the SqlBinder class and the Session class (#644) 2020-12-06 11:41:06 +08:00
Joakim L. Gilje 886dfc3648
Support OpenBSD (#626)
Co-authored-by: an-tao <antao2002@gmail.com>
2020-11-15 12:18:01 +08:00
an-tao fb17efe765 Bump version to 1.1.0 2020-10-31 11:10:23 +08:00
An Tao 43e7b3fec0
Add --path-to-namespace option to drogon_ctl for creating views (#607) 2020-10-12 21:51:39 +08:00
Andre Castellanos 3d9278cb82
CMAKE bug fixed when SHARED and EXAMPLES are on (#597)
Co-authored-by: andre <andre@pop-os.localdomain>
2020-10-04 11:10:23 +08:00
Martin Chang ada35c43fa
Fix failing to connect to DB if parameters contains spaces (#589) 2020-10-01 19:47:51 +08:00
An Tao bbb338bf12
Bump version to 1.0.0 (#584) 2020-09-27 22:51:09 +08:00
an-tao d59021ef9f Bump version to 1.0.0-beta21 2020-08-19 23:18:59 +08:00
An Tao 2aebba9cc1
Fix zlib link error on Windows for the latest vcpkg (#545) 2020-08-19 22:23:47 +08:00
an-tao f0110a642d Bump version to 1.0.0-beta20 2020-08-15 16:04:10 +08:00
an-tao dd66ba5a73 Bump version to 1.0.0-beta19 2020-07-16 21:07:00 +08:00
antao fda6a443a8 Bump version to 1.0.0-beta18 2020-06-14 23:20:35 +08:00
An Tao e7b7618c37
Use string_view to parse multipart/form-data requests (#469) 2020-06-10 11:11:24 +08:00
An Tao adab48e187
Fix a Mysql connection error on Windows (#449) 2020-06-02 22:05:03 +08:00
antao 49472a3cc4 Create a class template for publish subscribe pattern (#443) 2020-05-24 20:42:00 +08:00
antao 84e503a948 Bump version to 1.0.0-beta17 2020-05-23 10:47:24 +08:00
Vedran Miletić 375498a5a6
Fixes for FreeBSD (#440)
* Use uuid(3) to generate UUIDs on FreeBSD

FreeBSD is now handled like Windows so additional UUID libraries are
not required.

* Modify build.sh script to work on FreeBSD

- /bin/bash -> /usr/bin/env bash
- nproc -> sysctl -n hw.ncpu
2020-05-20 22:29:37 +08:00
interfector18 eafdc5d357
Add causal profiling with coz (#414) 2020-04-30 13:30:37 +08:00
antao 6d6a7acd09 Bump version to 1.0.0-beta16 2020-04-27 21:49:06 +08:00
ihmc3jn09hk 269acbc477
Use splitString in trantor (#413)
Co-authored-by: antao <antao2002@gmail.com>
2020-04-18 11:13:53 +08:00
An Tao c43ba9e514
Add support for brotli compression (#406) 2020-04-04 18:15:15 +08:00
antao 3a2c472694 Update drogon version to v1.0.0-beta15 2020-03-28 16:11:14 +08:00
An Tao f5e87acd9b
Remove dependency on pkg-config (#398)
Considering that on FreeBSD, pkg-config has been replaced by pkgconfig, we should remove the dependency on pkg-config.
2020-03-21 12:41:15 +08:00
ihmc3jn09hk 98ab826cfc
Fix drogon_ctl runtime error when compiling drogon to shared library (#397)
Fix for #395
2020-03-21 08:40:25 +08:00
An Tao 7af67dc4da
Make CMake install files relocatable (#387) 2020-03-18 19:54:48 +08:00
An Tao e171874524
Modify installation on Windows (#366) 2020-02-29 15:46:08 +08:00
Wang Gao d5cd882248
Add support for MSVC 2015 (#365)
Co-authored-by: An Tao <antao2002@gmail.com>
2020-02-26 12:36:46 +08:00
An Tao cc3149dc58
Modify CMakeLists.txt (#358) 2020-02-22 21:15:15 +08:00
An Tao 3d8c304a47
Remove get_version.sh (#344) 2020-02-06 22:13:50 +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 668533fbbd Update drogon version to v1.0.0-beta13 2020-01-04 09:37:10 +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 cc04a013be
Use INSTALL_LIB_DIR instead of 'CMAKE_INSTALL_PREFIX/lib' in CMakeLists.txt (#318) 2019-12-12 12:49:18 +08:00
interfector18 832c6cb48d Make shared linking possible, use option instead of set for CMake (#315) 2019-12-11 18:39:10 +08:00