def truncate_table ( self , tablename ) : self . get ( tablename ) . remove ( ) self . db . commit ( )
python sqlite3 delete doesn't delete records
SQLite3 doesn t support direct truncate so we just use delete here
def truncate_table(self, tablename):
        """
        SQLite3 doesn't support direct truncate, so we just use delete here
        """
        self.get(tablename).remove()
        self.db.commit()