summaryrefslogtreecommitdiffstats
path: root/api/database/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/database/__init__.py')
-rw-r--r--api/database/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/database/__init__.py b/api/database/__init__.py
index 5b0bb05a2..753b34684 100644
--- a/api/database/__init__.py
+++ b/api/database/__init__.py
@@ -6,16 +6,19 @@
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
+from __future__ import absolute_import
import logging
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
+from yardstick.common import constants as consts
+
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
-engine = create_engine('sqlite:////tmp/yardstick.db', convert_unicode=True)
+engine = create_engine(consts.SQLITE, convert_unicode=True)
db_session = scoped_session(sessionmaker(autocommit=False,
autoflush=False,
bind=engine))