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

Is there a way to export a sample by a table row? #44

Open
motishaku opened this issue Feb 12, 2023 · 3 comments
Open

Is there a way to export a sample by a table row? #44

motishaku opened this issue Feb 12, 2023 · 3 comments

Comments

@motishaku
Copy link

hey,
as the title asks, is there a way to export a sample of the db based on the relationships and the data from a single table?
example:
start from table A where the query given is A.id=1, go through all the tables foreign keys, and export the relavent data?

thanks in advance!

@mla
Copy link
Owner

mla commented Feb 12, 2023

Interesting. I don't think there is currently, sorry. I think you'd need to add --limit= rules for every table's FK where it -> a.id=1.

@motishaku
Copy link
Author

Thanks, but i have over 200 tables.
Do you plan by chance to add it one day?
I would, but i never touched Perl, if not, i might create a rust version tho if fine by you

@mla
Copy link
Owner

mla commented Feb 12, 2023

I'm open to adding that. Need to think about how it would be expressed. I'm a bit swamped currently so prob wouldn't be fast regardless. A rust version would be cool.

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