title: How can I replace the whole table's content with another table's content
body: <p>I need to replace the whole content of one table with another table's content. Both tables have the same fields.</p>
  
  <p>I don't see any way to execute <code>ALTER TABLE</code> statement via <a href="http://docs.peewee-orm.com/en/latest/" rel="nofollow">Peewee</a>, so I decided to use the combination of <code>DROP TABLE</code>, <code>CREATE TABLE</code> and <code>INSERT ... FROM</code> statements like this:</p>
  
  <pre><code>TableInWhichIWantToReplaceAllData.drop_table()
  db.create_table(TableInWhichIWantToReplaceAllData)
  TableWithNewData.insert_from(
      # ???,
      # ???
  ).execute()
  </code></pre>
  
  <p>But the problem is how can I specify <strong>all</strong> fields to be <code>SELECT</code>ed and <code>INSERT</code>ed? I don't want to manually specify all of them like in example:</p>
  
  <pre><code>source = (User
            .select(User.username, fn.COUNT(Tweet.id))
            .join(Tweet, JOIN.LEFT_OUTER)
            .group_by(User.username))
  UserTweetDenorm.insert_from(
      [UserTweetDenorm.username, UserTweetDenorm.num_tweets],
      source).execute()
  </code></pre>
  
  <p>Is there any other way?</p>