معرفی شرکت ها


Django-ArrayAccum-1.6.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Patch for Django-1.6.1 that allows you to use Postgres's array_accum function. It adds function ArrayAccum in django.db.models. Using ArrayAccum will only work on Postgresql. First install Django-1.6.1 then install this package.
ویژگی مقدار
سیستم عامل -
نام فایل Django-ArrayAccum-1.6.1
نام Django-ArrayAccum
نسخه کتابخانه 1.6.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Vijay Ragavan
ایمیل نویسنده vijay@moneychakra.com
آدرس صفحه اصلی http://pypi.python.org/pypi/Django-ArrayAccum/
آدرس اینترنتی https://pypi.org/project/Django-ArrayAccum/
مجوز UNKNOWN
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. This patch (pkg name Django-ArrayAccum on pypi) allows you to use the array_accum function available in Postgresql. This function will *NOT* work in other databases. If you are happy with Postgresql and want to be able to use the array_accum within Django (and not write custom sql) this fork is for you to try. This patch was created for Django-1.6.1. Install Django-1.6.1 before you install this patch. This patch modifies two files. 1) django/db/models/aggregates.py 2) django/db/models/sql/aggregates.py This adds a function called ArrayAccum which you can then use in any query involving aggregations (similar to Sum, Avg etc which are built-in). Example Usage: Suppose you have a model defined as such:: class People(models.Model): first_name = models.CharField(max_length=100) last_name = models.CharField(max_length=100) And lets say you want to show the most common last names, count, associated first names --- then here is how you can do it:: from django.db.models import Count, ArrayAccum results = People.objects.values("last_name").annotate(count=Count('id'), unique_first_names=ArrayAccum("first_name", distinct=True)).order_by('-count')


نحوه نصب


نصب پکیج whl Django-ArrayAccum-1.6.1:

    pip install Django-ArrayAccum-1.6.1.whl


نصب پکیج tar.gz Django-ArrayAccum-1.6.1:

    pip install Django-ArrayAccum-1.6.1.tar.gz