peeyush-tm / django-cube

Automatically exported from code.google.com/p/django-cube
GNU General Public License v3.0
1 stars 0 forks source link

Big refactoring #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This includes tickets 27 and 30 +
    - being able to write pure sql as aggregation method (only ONE query)
    - allowing more complex use-cases, like a dimension on several Django fields
    - maybe simplifying at maximum the use of Cube and Dimension, to make them straightforward to understand.

Original issue reported on code.google.com by seb...@gmail.com on 25 Nov 2010 at 3:12

GoogleCodeExporter commented 9 years ago
API should be more django-like:

    class MyCube(Cube):
        dim1 = fields.Dimension('bla')
        dim2 = fields.Dimension('blo')
        agg1 = fields.Sum()
        agg2 = MyCustomAgg()

Original comment by seb...@gmail.com on 18 Oct 2011 at 9:59