mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
[3.0.x] Doc'd return values of as_sql() for Func and query expressions.
Backport of 8c1b073b59
from master
This commit is contained in:
parent
f389e2c960
commit
cc20699e0a
2 changed files with 9 additions and 5 deletions
|
@ -314,7 +314,9 @@ The ``Func`` API is as follows:
|
|||
|
||||
.. method:: as_sql(compiler, connection, function=None, template=None, arg_joiner=None, **extra_context)
|
||||
|
||||
Generates the SQL for the database function.
|
||||
Generates the SQL fragment for the database function. Returns a tuple
|
||||
``(sql, params)``, where ``sql`` is the SQL string, and ``params`` is
|
||||
the list or tuple of query parameters.
|
||||
|
||||
The ``as_vendor()`` methods should use the ``function``, ``template``,
|
||||
``arg_joiner``, and any other ``**extra_context`` parameters to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue