Changes between Version 1 and Version 2 of Ticket #28643, comment 9


Ignore:
Timestamp:
Oct 13, 2017, 7:58:40 AM (7 years ago)
Author:
Mariusz Felisiak

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28643, comment 9

    v1 v2  
    11I prepared patch to reorganize database functions docs and code ([https://github.com/django/django/pull/9227 PR]). I think we should organize code and doc as follows (bolded functions doesn't exist):
    22
    3 - `docs/ref/models/database-functions.txt` main section  (`django/db/models/functions/misc.py`):
    4  - ''**Ascii**, Cast, **Chr**, Coalesce, Greatest, Least, Now'';
     3- `docs/ref/models/database-functions.txt` section `Comparison and conversion functions`  (`django/db/models/functions/comp_conv.py`):
     4 - ''Cast, Coalesce, Greatest, Least'';
    55- `docs/ref/models/database-functions.txt` section `Date Functions` (`django/db/models/functions/datetime.py`):
    6  - ''Extract, ExtractDay, ExtractHour, ExtractMinute, ExtractMonth, ExtractQuarter, ExtractSecond, ExtractWeek, ExtractWeekDay, ExtractYear, Trunc, TruncDate, TruncDay, TruncHour, TruncMinute, TruncMonth, TruncQuarter, TruncSecond, TruncTime, TruncYear;';
     6 - ''Extract, ExtractDay, ExtractHour, ExtractMinute, ExtractMonth, ExtractQuarter, ExtractSecond, ExtractWeek, ExtractWeekDay, ExtractYear, Now, Trunc, TruncDate, TruncDay, TruncHour, TruncMinute, TruncMonth, TruncQuarter, TruncSecond, TruncTime, TruncYear;';
    77- `docs/ref/models/database-functions.txt` section `Math Functions` (`django/db/models/functions/math.py`):
    88 - ''**Abs**, **Acos**, **Asin**, **Atan**, **Atan2**, **Ceil**, **Cos**, **Cot**, **Exp**, **Floor**, **Log**, **Mod**, **Power**, **Round**, **Sin**, **Sqrt**, **Tan**'';
    99- `docs/ref/models/database-functions.txt` section `Text Functions` (`django/db/models/functions/text.py`):
    10  - ''Concat, ConcatPair, Length, **Lpad**, Lower, **Ltrim**, **Replace**, **Rpad**, **Rtrim**, StrIndex, Substr, **Trim**, Upper'';
     10 - ''**Ascii**, **Chr**, Concat, ConcatPair, Length, **Lpad**, Lower, **Ltrim**, **Replace**, **Rpad**, **Rtrim**, StrIndex, Substr, **Trim**, Upper'';
    1111- `docs/ref/models/database-functions.txt` section `Window Functions` (`django/db/models/functions/window.py`):
    1212 - ''CumeDist, DenseRank, FirstValue, Lag, LastValue, Lead, NthValue, Ntile, PercentRank, Rank, RowNumber''.
Back to Top