(self)
| 30 | """ |
| 31 | |
| 32 | def connect(self): |
| 33 | self.initConnection() |
| 34 | |
| 35 | try: |
| 36 | self.connector = psycopg2.connect(host=self.hostname, user=self.user, password=self.password, database=self.db, port=self.port) |
| 37 | except (psycopg2.OperationalError, UnicodeDecodeError) as ex: |
| 38 | raise SqlmapConnectionException(getSafeExString(ex)) |
| 39 | |
| 40 | self.connector.set_client_encoding('UNICODE') |
| 41 | |
| 42 | self.initCursor() |
| 43 | self.printConnected() |
| 44 | |
| 45 | def fetchall(self): |
| 46 | try: |
nothing calls this directly
no test coverage detected