{"repo":"WTTJ/ecto_anon","free":true,"listed":false,"github":"https://github.com/WTTJ/ecto_anon","clone":"git clone https://github.com/WTTJ/ecto_anon.git","description":"Data anonymization for your Ecto models !","language":"Elixir","stars":90,"topics":["anon","anonymization","database","ecto","elixir","managed-as-code","managed-by-renovate-marketplace"],"license":"MIT","category":"databases-storage","readme_excerpt":"ecto anon Simple way to handle data anonymization directly in your Ecto schemas --- Table of Contents - Installation - Usage - Options - Default values - Native functions - Custom functions - Migrations - Filtering - License Installation Add :ecto anon to your mix.exs dependencies: Usage Define an anon schema in your schema module and specify every fields you want to anonymize (regular fields, associations, embeds): Then use EctoAnon.run to apply anonymization on desired resource Options cascade When set to true , it allows ecto anon to preload and anonymize all associations (and associations of these associations) automatically in cascade. Could be used to anonymize all data related to a struct in a single call. Note that this won't traverse belongs to associations. Default: false log When set to true , it will set anonymized field accordingly when EctoAnon.run is called on a ressource. Default: true Default values By default, a field will be anonymized with those valuee, based on its type: type value ------------------- --------------------------------- integer 0 float 0.0 string redacted map %{} decimal Decimal . new ( \" 0.0 \" ) date D[ 1970-01-01 ] datetime U[ 1970-01-01 00:00:00Z ] datetime usec U[ 1970-01-01 00:00:00.000000Z ] naive datetime N[ 1970-01-01 00:00:00 ] naive datetime usec N[ 1970-01-01 00:00:00.000000 ] time T[ 00:00:00 ] time usec T[ 00:00:00.000000 ] boolean no change id no change binary id no change binary no change Native functions Natively, ecto anon ","default_branch":null,"files":null,"tree":[],"storefront":"/r/WTTJ","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/WTTJ/ecto_anon/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}