1 from manifold.gateways import Gateway
2 from manifold.util.callback import Callback
4 #URL='sqlite:///:memory:?check_same_thread=False'
5 URL='sqlite:////var/myslice/db.sqlite?check_same_thread=False'
9 # We can read information from files, database, commandline, etc
10 # Let's focus on the database
13 def register(self, object):
15 Registers a new object that will be stored locally by manifold.
20 class DBStorage(Storage):
22 def execute(self, query, user=None, format='dict'):
23 # XXX Need to pass local parameters
24 gw = Gateway.get('sqlalchemy')(config={'url': URL}, user=user, format=format)
29 return cb.get_results()