#31839: Add additional database functions.
-------------------------------------+-------------------------------------
     Reporter:  Nick Pope            |                    Owner:  Nick Pope
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  functions, random,   |             Triage Stage:
  truncate, log2, log10, bit         |  Unreviewed
  length, octet length, hyperbolic   |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by Nick Pope:

Old description:

> I propose adding some additional database functions:
>
> - `Random`  -- generate random numbers in the range `[0.0, 0.1)`.
> - `Truncate` -- round number towards zero. (SQL function is `TRUNC`, but
> `Trunc` is used for date truncation in Django.)
> - `Log2` and `Log10` -- simple logarithm functions without needing to
> provide the base.
> - `ACosh`, `ASinh`, `ATanh`, `Cosh`, `Sinh`, and `Tanh` -- hyperbolic
> functions.
> - `BitLength` and `OctetLength` -- length of string in bits and bytes,
> complement to `Length` which is character length.

New description:

 I propose adding some additional database functions:

 - `Random`  -- generate random numbers in the range `[0.0, 0.1)`.
 - `Truncate` -- round number towards zero. (SQL function is `TRUNC`, but
 `Trunc` is used for date truncation in Django.)
 - `Log2` and `Log10` -- simple logarithm functions without needing to
 provide the base.
 - `ACosh`, `ASinh`, `ATanh`, `Cosh`, `Sinh`, and `Tanh` -- hyperbolic
 functions.
 - `BitLength` and `ByteLength` -- length of string in bits and bytes,
 complement to `Length` which is character length.

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31839#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.59de556bbf2b2de6d7e2cbf38d3760c3%40djangoproject.com.

Reply via email to