Ejemplo n.º 1
0
def delete(instance):
    with scoped_session() as db:
        db.delete(instance)
Ejemplo n.º 2
0
def add(instance):
    with scoped_session() as db:
        db.add(instance)
Ejemplo n.º 3
0
def add_all(instances):
    with scoped_session() as db:
        db.add_all(instances)
Ejemplo n.º 4
0
def add(instance):
    with scoped_session() as db:
        db.add(instance)
Ejemplo n.º 5
0
def merge(instance, load=True):
    with scoped_session() as db:
        db.merge(instance, load=load)
Ejemplo n.º 6
0
def delete(instance):
    with scoped_session() as db:
        db.delete(instance)
Ejemplo n.º 7
0
def add_all(instances):
    with scoped_session() as db:
        db.add_all(instances)