MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / close

Method close

lib/utils/hashdb.py:63–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 cursor = property(_get_cursor, _set_cursor)
62
63 def close(self):
64 threadData = getCurrentThreadData()
65 try:
66 if threadData.hashDBCursor:
67 threadData.hashDBCursor.connection.commit()
68 threadData.hashDBCursor.close()
69 threadData.hashDBCursor.connection.close()
70 threadData.hashDBCursor = None
71 except:
72 pass
73
74 def closeAll(self):
75 for connection in self._connections:

Callers 3

closeAllMethod · 0.45
beginTransactionMethod · 0.45
endTransactionMethod · 0.45

Calls 2

getCurrentThreadDataFunction · 0.90
commitMethod · 0.80

Tested by

no test coverage detected