MCPcopy Create free account
hub / github.com/apache/qpid-proton / _get_id

Method _get_id

python/examples/db_common.py:63–71  ·  view source on GitHub ↗
(self, conn, event)

Source from the content-addressed store, hash-verified

61 self.running = False
62
63 def _get_id(self, conn, event):
64 cursor = conn.execute("SELECT * FROM records ORDER BY id DESC")
65 row = cursor.fetchone()
66 if event:
67 if row:
68 event.id = row['id']
69 else:
70 event.id = 0
71 self.injector.trigger(event)
72
73 def _load(self, conn, records, event):
74 if self.position:

Callers 1

get_idMethod · 0.95

Calls 2

executeMethod · 0.80
triggerMethod · 0.80

Tested by

no test coverage detected