MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / openDb

Method openDb

src/Site/SiteStorage.py:48–51  ·  view source on GitHub ↗
(self, close_idle=False)

Source from the content-addressed store, hash-verified

46
47 # Create new databaseobject with the site's schema
48 def openDb(self, close_idle=False):
49 schema = self.getDbSchema()
50 db_path = self.getPath(schema["db_file"])
51 return Db(schema, db_path, close_idle=close_idle)
52
53 def closeDb(self):
54 if self.db:

Callers 2

getDbMethod · 0.95
rebuildDbMethod · 0.95

Calls 3

getDbSchemaMethod · 0.95
getPathMethod · 0.95
DbClass · 0.90

Tested by

no test coverage detected