def get_session() -> Session:
     return conf.SQLSession()
Beispiel #2
0
 def delete_to_sql(data) -> Session:
     session = Cf.SQLSession()
     session.delete(data)
     session.commit()
     return session
Beispiel #3
0
 def add_to_sql(data) -> Session:
     session = Cf.SQLSession()
     session.add(data)
     session.commit()
     return session
Beispiel #4
0
 def get_session() -> Session:
     return Cf.SQLSession()