#1268 suggestion
gioele

Aggregates support for YAML

Reported by gioele | May 13th, 2010 @ 08:32 AM

dm-aggregates should support YAML-based models.

Currently, merb-admin used on a YAML-based database raises this exception:

undefined method `aggregate' for DataMapper::Adapters::YamlAdapter

A more complete backtrace:

undefined method `aggregate' for #<DataMapper::Adapters::YamlAdapter:0x7f06eed16090> - (NoMethodError)
/tmp/t/gems/gems/dm-aggregates-0.10.2/lib/dm-aggregates/repository.rb:6:in `aggregate'
/tmp/t/gems/gems/dm-aggregates-0.10.2/lib/dm-aggregates/aggregate_functions.rb:168:in `aggregate'
/tmp/t/gems/gems/dm-aggregates-0.10.2/lib/dm-aggregates/aggregate_functions.rb:40:in `count'
/tmp/t/gems/gems/merb-admin-0.8.1/lib/datamapper_support.rb:13:in `count'
/tmp/t/gems/gems/merb-admin-0.8.1/lib/datamapper_support.rb:28:in `paginated'
/tmp/t/gems/gems/merb-admin-0.8.1/app/controllers/main.rb:28:in `list'

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) May 13th, 2010 @ 01:25 PM

    • State changed from “new” to “suggestion”

    Tagging this as suggestion.

    I don't know if this specific feature will make it into dm-aggregates without someone who is interested in implementing it takes it on. Unfortunately this is the only request I've heard for adding aggregate support for YAML.

    The DM2 query engine will likely provide aggregate support across all adapters, but it won't be ready for at least 6-12 months. In the meantime you can track it's development here:

    http://github.com/dkubb/veritas/

  • micah.alles

    micah.alles June 14th, 2010 @ 03:32 PM

    I'd also like to see aggregate support for the YAML adapter.

  • Piotr Solnica (solnic)

    Piotr Solnica (solnic) May 17th, 2011 @ 02:27 AM

    • Tag set to dm-aggregates
    • Milestone order changed from “0” to “0”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Pages