jamf / go-mysqldump

Create SQL dumps in Go without external dependencies
MIT License
18 stars 24 forks source link

How to add a Where a clause ? #10

Open br4in1 opened 4 years ago

br4in1 commented 4 years ago

Hello,

When using the mysqldump command on CLI, there's the ability to pass a condition to the -w option to act like a WHERE clause. How can I achieve this with go-mysqldump ? Thanks.

BrandonRoehl commented 4 years ago

Currently this is not possible as we don’t recreate all MySQL dump CLI functionality.

For this a PR would be needed the CreateSQL command will need to be updated as well as the *Data structure to have a place to set the new query.