MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / sqlExecute

Function sqlExecute

src/helper_sql.py:55–67  ·  view source on GitHub ↗
(sqlStatement, *args)

Source from the content-addressed store, hash-verified

53
54
55def sqlExecute(sqlStatement, *args):
56 sqlLock.acquire()
57 sqlSubmitQueue.put(sqlStatement)
58
59 if args == ():
60 sqlSubmitQueue.put('')
61 else:
62 sqlSubmitQueue.put(args)
63
64 queryreturn, rowcount = sqlReturnQueue.get()
65 sqlSubmitQueue.put('commit')
66 sqlLock.release()
67 return rowcount
68
69def sqlStoredProcedure(procName):
70 sqlLock.acquire()

Callers 15

HandleTrashMessageMethod · 0.90
HandleAddSubscriptionMethod · 0.90
sendMethod · 0.90
click_pushButtonSendMethod · 0.90
addEntryToAddressBookMethod · 0.90

Calls 2

putMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected