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

Method createIndexes

src/Db/DbCursor.py:154–159  ·  view source on GitHub ↗
(self, table, indexes)

Source from the content-addressed store, hash-verified

152 # Create indexes on table
153 # Return: True on success
154 def createIndexes(self, table, indexes):
155 for index in indexes:
156 if not index.strip().upper().startswith("CREATE"):
157 self.db.log.error("Index command should start with CREATE: %s" % index)
158 continue
159 self.execute(index)
160
161 # Create table if not exist
162 # Return: True if updated

Callers 1

needTableMethod · 0.95

Calls 2

executeMethod · 0.95
errorMethod · 0.80

Tested by

no test coverage detected