Martin Chang
7e4174d537
Escape connection string in drogon_ctl create model
( #967 )
2021-08-10 21:25:16 +08:00
An Tao
d22ce4a848
Fix a bug when creating sqlite3 models ( #756 )
2021-03-18 01:17:37 +08:00
JuergenGleiss
29a1659085
Feature/orm convert method ( #739 )
2021-03-12 10:41:20 +08:00
丁盟
64e916ccb3
Fix an error with missing composite key to sqlite3 ORM generator ( #673 )
2021-01-05 22:14:31 +08:00
An Tao
1cb8b17709
Fix some bugs when creating models via drogon_ctl ( #660 )
2020-12-18 09:41:58 +08:00
An Tao
dbf21f7dbc
Fix a bug when creating sqlite3 database models ( #618 )
2020-10-27 21:26:01 +08:00
An Tao
d023743fa3
Fix a bug when creating models in some special cases ( #577 )
2020-09-17 20:48:16 +08:00
An Tao
f1a7462c4c
Modify the Result class in orm ( #541 )
2020-08-16 20:00:14 +08:00
itgenie98
168d2afb17
Fixing bug in drogon_ctl when creating a model, that causes to write the content of the header and sourcefiles multiple times ( #540 )
2020-08-15 07:14:52 +08:00
An Tao
3424d3f2c4
Add a way to set the character set when creating DbClient objects ( #486 )
2020-06-20 20:21:14 +08:00
An Tao
4ebb72b0cf
Fix a bug with quoted column names in sqlite3 databases when using 'drogon_ctl create model'( #474 )
2020-06-14 09:13:49 +08:00
Rafał Bugajewski
9e959397af
Fixed Model Generation for PostgreSQL Primary Keys ( #471 )
...
As per definition Drogon should return the last ID after an insert
when “a table contains an auto-increasing primary key”, but the
current detection mechanism isn’t enough to catch all cases.
PostgreSQL has the concept of generated identity columns that act as
primary key columns, but this information is held in the "is_identity"
column that wasn’t checked before.
This commit fixes #410 , and also detects generated identity columns as
auto incrementing columns, so that the model generation correctly
appends " returning " statements.
2020-06-10 23:55:03 +08:00
An Tao
4f8290b589
Remove non standard macros ( #415 )
2020-04-25 02:12:44 +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
8d17cc567e
Fix the 'many to many' relationship ( #369 )
2020-03-01 16:48:18 +08:00
An Tao
810896c94c
Fix warnings on Windows ( #368 )
2020-03-01 11:50:47 +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
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
58702dc41e
Port drogon to Windows ( #335 )
...
Co-authored-by: mcirsta <mforce2@gmail.com>
2020-01-25 11:58:20 +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
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
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
a0b68fb3c9
Optimize request headers processing ( #228 )
2019-08-27 13:55:52 +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
11b6d20a69
clang-format
2019-05-18 20:39:57 +08:00
antao
db72840fc2
Move utility functions to the utils namespace
2019-03-21 17:47:45 +08:00
antao
7041783579
Modify code style
2019-02-02 11:34:00 +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
926ac48b49
Modify drogon_ctl
2018-12-29 18:02:39 +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
032aa19a53
Modify file formats and comments
2018-12-07 15:50:18 +08:00
an-tao
afe0eca5e8
Fix a compiler warning
2018-12-04 22:46:33 +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
5028f0f38f
Modify the creation of models
2018-11-23 23:46:58 +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