Skip to content

Commit

Permalink
Typos, reword
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Oct 5, 2016
1 parent 1aa5b00 commit 3630208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/devapi/querydb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ To query database, you can use hte ``$DB::query()`` method.

.. warning::

Whether this is possible to query database directly using this method, it should be avoid when possible, and you'd better use :doc:`DBIteraor <dbiterator>` instead.
Whether this is possible to query database directly using this method, it should be avoid when possible, and you'd better use :doc:`DBIterator <dbiterator>` instead.


To make a database query that could not be done using ``$DB->request()``, like SQL functions call (``NOW()``, ``ADD_DATE()``, ...), you can use the ``query()`` method:
To make a database query that could not be done using ``$DB->request()``, to call SQL functions (``NOW()``, ``ADD_DATE()``, ...) for example, you can use the ``query()`` method:

.. code-block:: php
Expand Down

0 comments on commit 3630208

Please sign in to comment.