Add sqlite and SQLAlchemy support for API 95/26395/4
authorchenjiankun <chenjiankun1@huawei.com>
Thu, 22 Dec 2016 08:41:08 +0000 (08:41 +0000)
committerchenjiankun <chenjiankun1@huawei.com>
Sat, 24 Dec 2016 15:36:51 +0000 (15:36 +0000)
commit8d702f720aeb9566adb258e886c12a348bedc84b
tree6e662b5ad5fc6a85db7adf4483622603cefa9496
parentbd847993c084f2d29de099c4b0e33a3d2e8de03e
Add sqlite and SQLAlchemy support for API

JIRA: YARDSTICK-505

Now yardstick API need a database to store API data.
And for future the yardstick GUI also need a self database.
So I choose a light-weight database sqlite.
And use SQLAlchemy to do ORM.

Change-Id: I1edc350ec6f57ad67785de549c2135c86ea60a4a
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
api/database/__init__.py [new file with mode: 0644]
api/database/models.py [new file with mode: 0644]
api/server.py
requirements.txt