19 name = re.sub(
'Def$',
'', base_class.__name__)
21 members[
'__tablename__'] = base_class.__tablename__
22 members[
'__table_args__'] =
None 25 members[
'__table_args__'] = {
'schema' : schema}
26 dbType = type(name, (_Base, base_class), members)
def make_dbtype(base_class, schema=None)