Definition at line 7 of file AtlCoolSchemaLib.py.
◆ __init__()
| python.AtlCoolSchemaLib.coolSchema.__init__ |
( |
| self, |
|
|
| schema, |
|
|
| instance, |
|
|
| extra = 0 ) |
initialise from a schema ('ATLAS_COOLONL_INDET')
and instance ('OFLP200')
Definition at line 9 of file AtlCoolSchemaLib.py.
9 def __init__(self,schema,instance,extra=0):
10 """initialise from a schema ('ATLAS_COOLONL_INDET')
11 and instance ('OFLP200')"""
12 x1=schema.index('_')
13 x2=schema.index('_',x1+1)
14 self._schema=schema
15 self._logic=schema[x1+1:]
16 self._detector=schema[x2+1:]
17 self._instance=instance
18 self._extra=extra
19
◆ detector()
| python.AtlCoolSchemaLib.coolSchema.detector |
( |
| self | ) |
|
Definition at line 32 of file AtlCoolSchemaLib.py.
32 def detector(self):
33 "Return detector name"
34 return self._detector
35
◆ instance()
| python.AtlCoolSchemaLib.coolSchema.instance |
( |
| self | ) |
|
Definition at line 28 of file AtlCoolSchemaLib.py.
29 "Return database instance name"
30 return self._instance
31
◆ logical()
| python.AtlCoolSchemaLib.coolSchema.logical |
( |
| self | ) |
|
Definition at line 24 of file AtlCoolSchemaLib.py.
24 def logical(self):
25 "Return logical (readonly) connection name"
26 return self._logic+'/'+self._instance
27
◆ offline()
| python.AtlCoolSchemaLib.coolSchema.offline |
( |
| self | ) |
|
Definition at line 36 of file AtlCoolSchemaLib.py.
37 "Returns true if the connection is to an offline DB"
38 return (self._schema.
find(
'ONL')<0)
39
40
std::string find(const std::string &s)
return a remapped string
◆ schema()
| python.AtlCoolSchemaLib.coolSchema.schema |
( |
| self | ) |
|
Definition at line 20 of file AtlCoolSchemaLib.py.
20 def schema(self):
21 "Return full database schema name"
22 return self._schema
23
◆ _detector
| python.AtlCoolSchemaLib.coolSchema._detector = schema[x2+1:] |
|
protected |
◆ _extra
| python.AtlCoolSchemaLib.coolSchema._extra = extra |
|
protected |
◆ _instance
| python.AtlCoolSchemaLib.coolSchema._instance = instance |
|
protected |
◆ _logic
| python.AtlCoolSchemaLib.coolSchema._logic = schema[x1+1:] |
|
protected |
◆ _schema
| python.AtlCoolSchemaLib.coolSchema._schema = schema |
|
protected |
The documentation for this class was generated from the following file: