class DataAnon::Strategy::Field::SelectFromDatabase

Similar to SelectFromList with difference is the list of values are collected from the database table using distinct column query.

!!!ruby
# values are collected using `select distinct state from customers` query connecting to specified database in connection_spec
anonymize('state').using FieldStrategy::SelectFromDatabase.new('customers','state', connection_spec)