OmniSciDB
a5dc49c757
|
Public Member Functions | |
def | __init__ |
def | __repr__ |
def | __del__ |
def | __enter__ |
def | __exit__ |
def | closed |
def | close |
def | commit |
def | execute |
def | cursor |
def | __call__ |
def | register_runtime_udfs |
Public Attributes | |
sessionid | |
Private Attributes | |
_closed | |
_user | |
_password | |
_host | |
_port | |
_dbname | |
_transport | |
_protocol | |
_socket | |
_tdf | |
_rbc | |
_client | |
_session | |
_idpsslverify | |
Connect to your HeavyDB database.
Definition at line 169 of file connection.py.
def heavydb.connection.Connection.__init__ | ( | self, | |
uri = None , |
|||
user = None , |
|||
password = None , |
|||
host = None , |
|||
port = 6274 , |
|||
dbname = None , |
|||
protocol = 'binary' , |
|||
sessionid = None , |
|||
bin_cert_validate = None , |
|||
bin_ca_certs = None , |
|||
idpurl = None , |
|||
idpformusernamefield = 'username' , |
|||
idpformpasswordfield = 'password' , |
|||
idpsslverify = True |
|||
) |
def heavydb.connection.Connection.__del__ | ( | self | ) |
Definition at line 334 of file connection.py.
References ai.heavy.jdbc.HeavyAIResultSet.close(), Archive.close(), ai.heavy.jdbc.HeavyAIStatement.close(), heavydb.connection.Connection.close(), ai.heavy.jdbc.HeavyAIConnection.close(), and ai.heavy.jdbc.HeavyAIPreparedStatement.close().
def heavydb.connection.Connection.__call__ | ( | self, | |
args, | |||
kwargs | |||
) |
Runtime UDF decorator. The connection object can be applied to a Python function as decorator that will add the function to bending registration list.
Definition at line 383 of file connection.py.
References heavydb.connection.Connection._dbname, heavydb.connection.Connection._host, heavydb.connection.Connection._password, heavydb.connection.Connection._port, heavydb.connection.Connection._rbc, heavydb.connection.Connection._user, and heavydb.connection.Connection.sessionid.
def heavydb.connection.Connection.__enter__ | ( | self | ) |
Definition at line 337 of file connection.py.
def heavydb.connection.Connection.__exit__ | ( | self, | |
exc_type, | |||
exc_val, | |||
exc_tb | |||
) |
Definition at line 340 of file connection.py.
References ai.heavy.jdbc.HeavyAIResultSet.close(), Archive.close(), ai.heavy.jdbc.HeavyAIStatement.close(), heavydb.connection.Connection.close(), ai.heavy.jdbc.HeavyAIConnection.close(), and ai.heavy.jdbc.HeavyAIPreparedStatement.close().
def heavydb.connection.Connection.__repr__ | ( | self | ) |
Definition at line 321 of file connection.py.
References heavydb.connection.Connection._dbname, heavydb.connection.Connection._host, heavydb.connection.Connection._port, heavydb.connection.Connection._protocol, and heavydb.connection.Connection._user.
def heavydb.connection.Connection.close | ( | self | ) |
Disconnect from the database unless created with sessionid
Definition at line 347 of file connection.py.
References heavydb.connection.Connection._closed, heavydb.connection.Connection._rbc, heavydb.connection.Connection._session, and heavydb.connection.Connection.sessionid.
Referenced by heavydb.connection.Connection.__del__(), heavydb.cursor.Cursor.__exit__(), and heavydb.connection.Connection.__exit__().
def heavydb.connection.Connection.closed | ( | self | ) |
Definition at line 344 of file connection.py.
References heavydb.connection.Connection._closed.
def heavydb.connection.Connection.commit | ( | self | ) |
This is a noop, as HeavyDB does not provide transactions. Implemented to comply with the DBI specification.
Definition at line 357 of file connection.py.
def heavydb.connection.Connection.cursor | ( | self | ) |
Create a new :class:`Cursor` object attached to this connection.
Definition at line 379 of file connection.py.
def heavydb.connection.Connection.execute | ( | self, | |
operation, | |||
parameters = None |
|||
) |
Execute a SQL statement Parameters ---------- operation: str A SQL statement to exucute Returns ------- c: Cursor
Definition at line 364 of file connection.py.
Referenced by heavydb.cursor.Cursor.executemany().
def heavydb.connection.Connection.register_runtime_udfs | ( | self | ) |
Register any bending Runtime UDF functions in HeavyDB server. If no Runtime UDFs have been defined, the call to this method is noop.
Definition at line 405 of file connection.py.
References heavydb.connection.Connection._rbc.
|
private |
Definition at line 275 of file connection.py.
|
private |
Definition at line 191 of file connection.py.
Referenced by heavydb.connection.Connection.close(), and heavydb.connection.Connection.closed().
|
private |
Definition at line 261 of file connection.py.
Referenced by heavydb.connection.Connection.__call__(), and heavydb.connection.Connection.__repr__().
|
private |
Definition at line 259 of file connection.py.
Referenced by heavydb.connection.Connection.__call__(), and heavydb.connection.Connection.__repr__().
|
private |
Definition at line 294 of file connection.py.
|
private |
Definition at line 258 of file connection.py.
Referenced by heavydb.connection.Connection.__call__().
|
private |
Definition at line 260 of file connection.py.
Referenced by heavydb.connection.Connection.__call__(), and heavydb.connection.Connection.__repr__().
|
private |
Definition at line 263 of file connection.py.
Referenced by heavydb.connection.Connection.__repr__().
|
private |
Definition at line 266 of file connection.py.
Referenced by heavydb.connection.Connection.__call__(), heavydb.connection.Connection.close(), and heavydb.connection.Connection.register_runtime_udfs().
|
private |
Definition at line 279 of file connection.py.
Referenced by heavydb.connection.Connection.close().
|
private |
Definition at line 264 of file connection.py.
|
private |
Definition at line 265 of file connection.py.
|
private |
Definition at line 262 of file connection.py.
|
private |
Definition at line 257 of file connection.py.
Referenced by heavydb.connection.Connection.__call__(), and heavydb.connection.Connection.__repr__().
heavydb.connection.Connection.sessionid |
Definition at line 190 of file connection.py.
Referenced by heavydb.connection.Connection.__call__(), and heavydb.connection.Connection.close().