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

Method execute

plugins/dbms/sqlite/connector.py:76–84  ·  view source on GitHub ↗
(self, query)

Source from the content-addressed store, hash-verified

74 return None
75
76 def execute(self, query):
77 try:
78 self.cursor.execute(getText(query))
79 except self.__sqlite.OperationalError as ex:
80 logger.log(logging.WARN if conf.dbmsHandler else logging.DEBUG, "(remote) '%s'" % getSafeExString(ex))
81 except self.__sqlite.DatabaseError as ex:
82 raise SqlmapConnectionException(getSafeExString(ex))
83
84 self.connector.commit()
85
86 def select(self, query):
87 self.execute(query)

Callers 2

selectMethod · 0.95
connectMethod · 0.45

Calls 4

getTextFunction · 0.90
getSafeExStringFunction · 0.90
commitMethod · 0.80

Tested by

no test coverage detected