Commit Graph

8 Commits

Author SHA1 Message Date
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 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 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
antao bc52c121d5 Add sqlite3 support to the configuration file 2018-12-29 17:17:50 +08:00
antao 458d14591b Modify some strings 2018-12-03 10:13:31 +08:00
antao 143b62b36b Fix some bugs in creating models 2018-11-09 15:46:38 +08:00