Beispiel #1
0
def mapper(cls, table=None, *args, **kwargs):
    tb_mapper = _mapper(cls, table, *args, **kwargs)
    table_registry[table.name].add(tb_mapper)

    return tb_mapper
Beispiel #2
0
def mapper(cls, table=None, *args, **kwargs):
    tb_mapper = _mapper(cls, table, *args, **kwargs)
    table_registry[table.name].add(tb_mapper)

    return tb_mapper