MCPcopy Create free account
hub / github.com/apache/impala / _connect

Method _connect

tests/comparison/db_connection.py:1214–1222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1212 return self.db_name or self._user_name
1213
1214 def _connect(self):
1215 try:
1216 import cx_Oracle
1217 except Exception:
1218 print('Error importing cx_Oracle. Please make sure it is installed. '
1219 'See the README for details.')
1220 raise
1221 self._conn = cx_Oracle.connect('{}/{}@{}:{}/{}'.format(
1222 self._user_name, self._password, self._host_name, self._port, self._service))
1223
1224 def cursor(self):
1225 cursor = super(OracleConnection, self).cursor()

Callers

nothing calls this directly

Calls 2

connectMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected