MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / getDbSchema

Method getDbSchema

src/Site/SiteStorage.py:59–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 self.db = None
58
59 def getDbSchema(self):
60 try:
61 schema = self.loadJson("dbschema.json")
62 except Exception as err:
63 raise Exception("dbschema.json is not a valid JSON: %s" % err)
64 return schema
65
66 # Return db class
67 def getDb(self):

Callers 2

openDbMethod · 0.95
getDbMethod · 0.95

Calls 1

loadJsonMethod · 0.95

Tested by

no test coverage detected