【发布时间】:2012-11-27 15:23:11
【问题描述】:
我在任何地方都找不到如何使用“--exclude”。 当我尝试这段代码时
heroku help db:pull
我明白了:
Usage: heroku db:pull [DATABASE_URL]
pull heroku data down into your local database
DATABASE_URL should reference your local database. if not specified, it
will be guessed from config/database.yml
-c, --chunksize SIZE # specify the number of rows to send in each batch
-d, --debug # enable debugging output
-e, --exclude TABLES # exclude the specified tables from the pull
-f, --filter REGEX # only pull certain tables
-r, --resume FILE # resume transfer described by a .dat file
-t, --tables TABLES # only pull the specified tables
好的,我了解如何对一张表使用“-e”,但我想排除多个表。 它不起作用:
heroku db:pull -e users, versions
【问题讨论】:
-
如果我必须根据常见的命令行约定做出有根据的猜测,我会说
-e "users versions",但这只是几种可能性之一。但是,如果出于任何原因,其中有空格,您肯定需要引号。