database-command
database-command copied to clipboard
wildcard for db dump
dumping with --prefix=news also dumps "newsCategory" or "newsSomething"
would be great to get those other tables dumped only when using a wildcard --prefix=news >>> dumps "news" --prefix=news* >>> dumps "news", "newsCategory", "newsSomething"
I think we should implement this with multiple --include
and --exclude
options. Maybe --includeTables
and --excludeTables
.
what would that mean for usage?
--prefix=news
--exclude=newsCategories,newsSomething
or
--include=news
--exclude=newsCategories,newsSomething
or
--include=news
--exclude=newsCategories,newsSomething
or to get all dumped
--include=news,newsCategories,newsSomething
Was merely about wildcards/regex, maybe we shouldn't allow mixing --prefix with --include/exclude...
Dump all news Tables except for newsCategories and newsSomething
--include=news*
--exclude=newsCategories
--exclude=newsSomething
Just dump news Table
--include=news
so
--include=news*
--exclude=newsCategories
would dump "news" and "newsSomething" or only "newsSomething" because the wildcard means there has to be more...?
awaiting PR :)