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