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

Method getCursor

src/Db/Db.py:179–188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

177 # Gets a cursor object to database
178 # Return: Cursor class
179 def getCursor(self):
180 if not self.conn:
181 self.connect()
182
183 cur = DbCursor(self.conn, self)
184 cur.execute('PRAGMA journal_mode=WAL')
185 if self.foreign_keys:
186 cur.execute("PRAGMA foreign_keys = ON")
187
188 return cur
189
190 def getSharedCursor(self):
191 if not self.conn:

Callers 12

connectMethod · 0.95
processDelayedMethod · 0.95
actionBenchmarkMethod · 0.95
Db.pyFile · 0.80
rebuildDbMethod · 0.80
collectGlobalMethod · 0.80
collectSitesMethod · 0.80
archiveMethod · 0.80
savePeersMethod · 0.80
fillTableFileOptionalMethod · 0.80
checkOptionalLimitMethod · 0.80
processRequestLogFunction · 0.80

Calls 3

connectMethod · 0.95
executeMethod · 0.95
DbCursorClass · 0.90

Tested by 1

rebuildDbMethod · 0.64