Skip to content

--wheres syntax with pscale database dump #637

Answered by mscoutermarsh
kellysutton asked this question in FAQs
Discussion options

You must be logged in to vote

@kellysutton! Hello friend.

Both --tables and --wheres are comma delimited strings. You can use them like this...

pscale database dump my-db main --tables "users" --wheres "organization_id = 1"

That will only dump records from the users table where organization_id = 1.

Then if you want to do multiple...

pscale database dump my-db main --tables "users, items" --wheres "organization_id = 1, organization_id = 1"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kellysutton
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQs
Labels
None yet
2 participants