Skip to content

Commit

Permalink
Experimental ORM examples and readme adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
HerikLyma committed Mar 14, 2019
1 parent 8e434fe commit ad2bcf3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,8 @@ build_script:
- cd RESTWebService
- qmake RESTWebService.pro
- mingw32-make -j 8

- cd ..
- cd ORM
- qmake ORM.pro
- mingw32-make -j 8
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,7 @@ script:
- qmake RESTWebService.pro
- make -j 8

- cd ..
- cd ORM
- qmake ORM.pro
- mingw32-make -j 8
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ public:
void doGet(CWF::Request &request, CWF::Response &response) const override
{
UserModel user{conexao};
user.updateDB();
user.build();
user.setName("Herik Lima");
user.setPhone("+55 11 9 99999-0000");
user.setCountry("Brazil");
Expand All @@ -174,6 +172,7 @@ public:
int main(int argc, char *argv[])
{
CWF::CppWebApplication server(argc, argv, "/home/herik/CPPWebFramework/examples/ORM/server");
UserModel{conexao}.updateDB();//Create or update the table in database
server.addController<ORMController>("/orm");
return server.start();
}
Expand Down
3 changes: 1 addition & 2 deletions examples/ORM/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class ORMController : public CWF::Controller
void doGet(CWF::Request &request, CWF::Response &response) const override
{
UserModel user{conexao};
user.updateDB();
user.build();
user.setName("Herik Lima");
user.setPhone("+55 11 9 99999-0000");
user.setCountry("Brazil");
Expand All @@ -35,6 +33,7 @@ class ORMController : public CWF::Controller
int main(int argc, char *argv[])
{
CWF::CppWebApplication server(argc, argv, "/home/herik/CPPWebFramework/examples/ORM/server");
UserModel{conexao}.updateDB();//Create or update the table in database
server.addController<ORMController>("/orm");
return server.start();
}

0 comments on commit ad2bcf3

Please sign in to comment.