Closed geshan closed 5 years ago
Hi,
Cool features required! Can you tell me what's your usecase under these features? Thanks.
The is a big 100 Gb db on production and the usecase is to get a subset data of recent records (under 5 gb) on staging with this script including obsfucation. Thanks!
Got. Features are on the plan.
It would be great to do with a config file. Thanks!
@geshan Hi, This branch dump with a config file, but 'where' and others are still work in progress, feel free to ping me if you have questions: https://github.com/xelabs/go-mydumper/tree/201908_config
You are super quick, will have a look soon. Will wait for other features. Thanks!
Added a couple of comments to that commit :).
Updated: add where filter
Are you going to add the column map also any time soon? :)
@geshan It is being planned. BTW, what's the user case here?
Data obfuscation like customer email, address, phone, etc doesn't need to be loaded on staging.
Data obfuscation is done and the code is on master: https://github.com/xelabs/go-mydumper/commit/09e78c27d2f62e121d18dbedc7f06cd81fe01c33
Most things are done, thanks @BohuTANG , closing the issue.
Amazing project BTW
I have only tried the dump part but with some tweaks for ~400 tables with 2 records each from every table, the dump was done in 2 mins.
Feature Requests
I have a couple of feature requests that would make this tool even more amazing. I am adding this wishlist from - https://github.com/hgfischer/mysqlsuperdump :)
Ability to do a
where
during a dump/even limit rows at table levelIf there was a way to add a where for tables like :
That would be a great feature.
Ability to skip data or whole table
like:
Ability to map columns to obfuscate
like:
Looks like a big list but if these features are there, this tool would be magical.