from daklib.dbconn import DBConn, Uid
-from sqlalchemy import func
import time
import unittest
TODO: Should we check all tables?
"""
- def now(self):
- "returns the current time at the db server"
-
- # we fetch a fresh session each time to avoid caching
- local_session = DBConn().session()
- current_time = local_session.query(func.now()).scalar()
- local_session.close()
- return current_time
-
def sleep(self):
time.sleep(0.001)