mnc / maskdump Goto Github PK
View Code? Open in Web Editor NEWmaskdump is a ruby gem to dump database and mask its personal data.
License: MIT License
maskdump is a ruby gem to dump database and mask its personal data.
License: MIT License
ユーザーが自前のマスククラスを追加する場合、どこのを読みにいくようにすべきか。
今は lib/mozaic/mask_method/plugin/*.rb を読みに行くようにしている。
pluginディレクトリだと制約もおおいし、internalなディレクトリ内をさわらなくてよいから、gem名を指定するようにしたほうがいい
fluentdみたいにregisterするようにするのもあり
カスタムメソッドを複数追加できるようにする
active_record/tasks/mysql_database_tasks.rb
にある
rake db:structure:dump
によるsqlファイルの出力は、dump対象のテーブルが指定できない。
それが問題だが、空のテーブルができるのは問題ない気がする。
問題あったらActiveRecord::Base.connection.execute("SHOW CREATE TABLE table_name;")
method: defaultはやめる。なにがおきるか使う人からわからない
課題とその解決が一致していたら実施する
Railsで使う場合はdatabase.ymlを読み込めるようにしたいが、database.ymlを読み込むならRailsを起動しないといけない。
別のwebアプリケーションでも同様の問題がおきるから、yaml内にerbでenvを読み込めるようにする。
we need use mysqlbinlog to dump differential data. It's complicated...
ユーザーが自前のマスククラスを追加する場合、どこのを読みにいくようにすべきか。
今は lib/mozaic/mask_method/plugin/*.rb を読みに行くようにしている。
frozen string literal パフォーマンスチューニング
検証結果をREADMEに記載する
Now supported options include:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.