Public Member Functions | |
def | __init__ (self, url) |
def | get_dbtype (self, theType) |
def | init (self, drop=False) |
def | is_frontier (self) |
def | is_official (self) |
def | is_oracle (self) |
def | is_read_only (self) |
def | is_sqlite (self) |
def | is_valid (self) |
def | metadata (self) |
def | session (self) |
Public Attributes | |
engine | |
Private Attributes | |
_backendName | |
_is_frontier | |
_is_official | |
_is_oracle | |
_is_read_only | |
_is_sqlite | |
_is_valid | |
_schemaName | |
_session | |
_url | |
Definition at line 321 of file conddblib.py.
def conddblib.Connection.__init__ | ( | self, | |
url | |||
) |
Definition at line 323 of file conddblib.py.
def conddblib.Connection.get_dbtype | ( | self, | |
theType | |||
) |
Definition at line 378 of file conddblib.py.
References conddblib.Connection._backendName, conddblib.Connection._schemaName, relativeConstraints.keys, and conddblib.make_dbtype().
Referenced by conddblib.Connection.init(), conddblib.Connection.is_valid(), and conddblib.Connection.session().
def conddblib.Connection.init | ( | self, | |
drop = False |
|||
) |
Initializes a database.
Definition at line 429 of file conddblib.py.
References conddblib.Connection._is_valid, querying.connection.engine, conddblib.Connection.engine, conddblib.Connection.get_dbtype(), and conddblib.Connection.metadata().
def conddblib.Connection.is_frontier | ( | self | ) |
Definition at line 398 of file conddblib.py.
References conddblib.Connection._is_frontier.
def conddblib.Connection.is_official | ( | self | ) |
Definition at line 414 of file conddblib.py.
References conddblib.Connection._is_official.
def conddblib.Connection.is_oracle | ( | self | ) |
Definition at line 402 of file conddblib.py.
References conddblib.Connection._is_oracle.
Referenced by conddblib.Connection.session().
def conddblib.Connection.is_read_only | ( | self | ) |
Definition at line 410 of file conddblib.py.
References conddblib.Connection._is_read_only.
def conddblib.Connection.is_sqlite | ( | self | ) |
Definition at line 406 of file conddblib.py.
References conddblib.Connection._is_sqlite.
def conddblib.Connection.is_valid | ( | self | ) |
Tests whether the current DB looks like a valid CMS Conditions one.
Definition at line 417 of file conddblib.py.
References python.cmstools.all(), conddblib.connect(), querying.connection.engine, conddblib.Connection.engine, conddblib.Connection.get_dbtype(), and conddblib.getSchema().
def conddblib.Connection.metadata | ( | self | ) |
def conddblib.Connection.session | ( | self | ) |
Definition at line 385 of file conddblib.py.
References conddblib.Connection._is_sqlite, conddblib.Connection._session, url_query.url_query._url, conddblib.Connection._url, conddblib.Connection.get_dbtype(), and conddblib.Connection.is_oracle().
|
private |
Definition at line 362 of file conddblib.py.
Referenced by conddblib.Connection.get_dbtype().
|
private |
Definition at line 344 of file conddblib.py.
Referenced by conddblib.Connection.is_frontier().
|
private |
Definition at line 353 of file conddblib.py.
Referenced by conddblib.Connection.is_official().
|
private |
Definition at line 345 of file conddblib.py.
Referenced by conddblib.Connection.is_oracle().
|
private |
Definition at line 348 of file conddblib.py.
Referenced by conddblib.Connection.is_read_only().
|
private |
Definition at line 346 of file conddblib.py.
Referenced by conddblib.Connection.is_sqlite(), and conddblib.Connection.session().
|
private |
Definition at line 376 of file conddblib.py.
Referenced by conddblib.Connection.init().
|
private |
Definition at line 363 of file conddblib.py.
Referenced by conddblib.Connection.get_dbtype().
|
private |
Definition at line 342 of file conddblib.py.
Referenced by conddblib.Connection.session().
|
private |
Definition at line 361 of file conddblib.py.
Referenced by conddblib.Connection.session().
conddblib.Connection.engine |
Definition at line 330 of file conddblib.py.
Referenced by o2o_db_manager.DbManager.connect(), conddblib.Connection.init(), and conddblib.Connection.is_valid().