Changes between Version 1 and Version 2 of Ticket #28643, comment 9
- Timestamp:
- Oct 13, 2017, 7:58:40 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28643, comment 9
v1 v2 1 1 I 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): 2 2 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''; 5 5 - `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;'; 7 7 - `docs/ref/models/database-functions.txt` section `Math Functions` (`django/db/models/functions/math.py`): 8 8 - ''**Abs**, **Acos**, **Asin**, **Atan**, **Atan2**, **Ceil**, **Cos**, **Cot**, **Exp**, **Floor**, **Log**, **Mod**, **Power**, **Round**, **Sin**, **Sqrt**, **Tan**''; 9 9 - `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''; 11 11 - `docs/ref/models/database-functions.txt` section `Window Functions` (`django/db/models/functions/window.py`): 12 12 - ''CumeDist, DenseRank, FirstValue, Lag, LastValue, Lead, NthValue, Ntile, PercentRank, Rank, RowNumber''.