Classes
|
Functions
o2o_db_manager Namespace Reference
Classes
class
DbManager
Functions
def
make_dbtype
(base_class, schema=
None
)
Function Documentation
◆
make_dbtype()
def o2o_db_manager.make_dbtype
(
base_class
,
schema
=
None
)
Definition at line
16
of file
o2o_db_manager.py
.
16
def
make_dbtype
(base_class, schema=None):
17
import
re
18
name = re.sub(
'Def$'
,
''
, base_class.__name__)
19
members = {}
20
members[
'__tablename__'
] = base_class.__tablename__
21
members[
'__table_args__'
] =
None
22
if
schema:
23
name = name + schema
24
members[
'__table_args__'
] = {
'schema'
: schema}
25
dbType = type(name, (_Base, base_class), members)
26
return
dbType
27
28
o2o_db_manager.make_dbtype
def make_dbtype(base_class, schema=None)
Definition:
o2o_db_manager.py:16
Generated for CMSSW Reference Manual by
1.8.14