MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / sqlQuery

Function sqlQuery

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

Source from the content-addressed store, hash-verified

6sqlLock = threading.Lock()
7
8def sqlQuery(sqlStatement, *args):
9 sqlLock.acquire()
10 sqlSubmitQueue.put(sqlStatement)
11
12 if args == ():
13 sqlSubmitQueue.put('')
14 elif type(args[0]) in [list, tuple]:
15 sqlSubmitQueue.put(args[0])
16 else:
17 sqlSubmitQueue.put(args)
18
19 queryreturn, rowcount = sqlReturnQueue.get()
20 sqlLock.release()
21
22 return queryreturn
23
24
25def sqlExecuteChunked(sqlStatement, idCount, *args):

Calls 2

putMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected