- res = session.query(Map).filter("tweet_id =:tid").params(tid=tid).all()
- return res
-
- def truncate(self):
- """
- Truncate table
- """
- Session = sessionmaker(bind=self.engine)
- session = Session()
- session.query(Map).delete()
- session.commit()