Commit Graph

44 Commits

Author SHA1 Message Date
frank10gm 816684e15d
Replace sprintf with snprintf (#1758)
Co-authored-by: francesco.laplaca <francesco.laplaca@enhancers.it>
Co-authored-by: Ken Matsui <26405363+ken-matsui@users.noreply.github.com>
2023-08-28 17:18:12 +08:00
Nikolay Mitev 17c80508c0 Drop cpp14 build (#1740)
* Drop C++14 Support

* Update README.md

* Remove drogon::optional in favor of std::optional

* Remove drogon::filesystem in favor of std::filesystem

* Remove boost::string_view and pre-c++17 hacks

* Remove boost::any

* Remove the string_view.h and the any.h

* Remove boost lib

* Update .clang-format and ci

Co-authored-by: Omar Mohamed <omar@omar-laptop.lan>
Co-authored-by: Ken Matsui <26405363+ken-matsui@users.noreply.github.com>
Co-authored-by: An Tao <antao2002@gmail.com>
Co-authored-by: albaropereyra22 <141711575+albaropereyra22@users.noreply.github.com>
Co-authored-by: Yoshihiro Hokazono <47231909+hokacci@users.noreply.github.com>
Co-authored-by: Omar Mohamed Khallaf <51155980+omarmohamedkh@users.noreply.github.com>
2023-08-23 11:49:55 +08:00
Ken Matsui 75b106599d
Implement QueryBuilder (#1331) 2023-05-22 09:52:19 +08:00
Tanglong3bf e25a162887
Add synchronization interface to model's associated query (#1531) 2023-03-25 16:27:08 +08:00
NitroMelon 6a55a3aa64
Fix namespace in model template. (#1107) 2021-12-05 18:29:29 +08:00
Ichiro faf3e0c17c
Add drogon::orm to models generation (#1092) 2021-11-26 11:29:47 +08:00
0rangeFox c65051a8f1
Remove repeated class names on relationships from model generator. (#792) 2021-04-09 22:15:49 +08:00
An Tao 4b8d08f20f
Add CoroMapper to models friends (#790) 2021-04-09 16:54:40 +08:00
An Tao f26450f04b
Fix an error in sqlite3 ORM generator (#669) 2020-12-30 20:11:24 +08:00
An Tao 9c54fb8c69
Modify generation of models and the DbClient class (#498)
* Add setter method for automatical fields of models

* Put SQL queries into buffer before any connection being established

* Update trantor
2020-07-03 12:19:40 +08:00
interfector18 17b8c337f9
Standardize Row and Result api (#409)
* Standardize Row and Result api, throw specific exceptions

* Fix drogon_ctl for sqlite3 models

* Add mysql and sqlite3 tests, add exception throwing tests

* configure mysql in travis-ci

Co-authored-by: antao <antao2002@gmail.com>
2020-04-11 11:46: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 456d003482
Add prefixes to column name variables in model classes (#242) 2019-09-13 08:28:58 +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 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
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 3452a2fa1c Modify some code to get a good style 2019-05-23 18:57:45 +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 801cb8aa35 Modify some database classes 2019-03-07 11:56:20 +08:00
antao 926ac48b49 Modify drogon_ctl 2018-12-29 18:02:39 +08:00
antao 71faac9fb2 Modify the drogon_ctl 2018-12-07 19:08:17 +08:00
antao 25548eaaa0 The mysql client works 2018-12-03 10:13:31 +08:00
antao 81540ca19b Add a database test 2018-11-27 17:37:41 +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 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 4b8971b258 Fix some warnings 2018-11-11 18:51:39 +08:00
an-tao 6e5eef9aaf Fix some warnings 2018-11-09 15:55:20 +08:00
antao fdb69781f2 Add a comment to the model header file 2018-11-09 15:46:39 +08:00
antao 32a7c5aff6 Support composite primary key 2018-11-09 15:46:39 +08:00
antao 4e060b7726 Support date type in ORM 2018-11-09 15:46:39 +08:00
an-tao fc7ddd5b6c Fix some warnings in linux 2018-11-09 15:46:39 +08:00
antao acaa604559 Fix some bugs in models 2018-11-09 15:46:39 +08:00
antao 6810dd261c Modify models template 2018-11-09 15:46:39 +08:00
antao 16d6caedb0 Remove 'setter' methods of auto-increasing columns 2018-11-09 15:46:38 +08:00
antao 143b62b36b Fix some bugs in creating models 2018-11-09 15:46:38 +08:00
antao d340e1cc10 Update model template files 2018-11-09 15:46:38 +08:00
antao 0d77fa1490 Improve the function of creating models 2018-11-09 15:46:38 +08:00