Closed bgood closed 3 years ago
Thank you for filing a pull request!
I'm wondering what is the use case of this option because dumping DDL is officially supported by gcloud spanner databases ddl describe. Probably this is for users who are familiar with mysqldump --no-data command?
I initially implemented as a convenience thing for users already using the spanner-dump
tool, so users didn't have to flip between glcoud
and spanner-dump
.
Your point about about mysqldump --no-data
is a good one, but not my initial motivation.
That makes sense. I will merge this PR.
By using the
no-data
flag you can easily dump just the DDL.