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

Method __init__

lib/core/replication.py:25–34  ·  view source on GitHub ↗
(self, dbpath)

Source from the content-addressed store, hash-verified

23 """
24
25 def __init__(self, dbpath):
26 try:
27 self.dbpath = dbpath
28 self.connection = sqlite3.connect(dbpath)
29 self.connection.isolation_level = None
30 self.cursor = self.connection.cursor()
31 except sqlite3.OperationalError as ex:
32 errMsg = "error occurred while opening a replication "
33 errMsg += "file '%s' ('%s')" % (dbpath, getSafeExString(ex))
34 raise SqlmapConnectionException(errMsg)
35
36 class DataType(object):
37 """

Callers

nothing calls this directly

Calls 3

getSafeExStringFunction · 0.90
connectMethod · 0.45

Tested by

no test coverage detected