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