Esempio n. 1
0
 def open(self):
     if self.uridict['name'] == 'config':
         self.uridict = dissect_from_config(self.uridict)
     self.dbapi = driverconnect(
         self.uridict, self.autocommit, self.extras)
     self.opened = True
     return self
Esempio n. 2
0
 def open(self):
     if self.uridict['name'] == 'config':
         self.conn.uridict = dissect_from_config(self.uridict)
     self.conn.uridict = createdb(self.uridict, force=True)
     self.conn.open()
     with self.conn.begin():
         self.create_all(self.conn)
     self.opened = True
     return self