Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wildcards don't seem to be working in "--limit" #37

Open
alexandernst opened this issue Mar 27, 2022 · 1 comment
Open

wildcards don't seem to be working in "--limit" #37

alexandernst opened this issue Mar 27, 2022 · 1 comment

Comments

@alexandernst
Copy link

I'm trying to dump a Django project, so I did --limit="django_* = *,table_foo=15,*=15", which I was expecting to dump 15 rows from foo and all rows from all the tables that start with django_ (namely django_migrations and django_site). After inspecting the result I found out that only 15 rows were dumped from django_* tables.

@mla
Copy link
Owner

mla commented Mar 28, 2022

Try using --limit="django_.*=*" The left side is treated as a full regular expression.

I see the example in the docs is misleading:
--limit="forums.* = *"

That should really be --limit="forums\..*=*"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants