Skip to content


Browse files Browse the repository at this point in the history
Update queries.rst
  • Loading branch information
virusdave committed Jun 1, 2016
1 parent 4a5fa61 commit 13fbd7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions slick/src/sphinx/queries.rst
Expand Up @@ -47,6 +47,9 @@ the classes ``AnyExtensionMethods``, ``ColumnExtensionMethods``,
``==`` for comparing two values for equality and ``=!=`` instead of ``!=`` for inequality.
This is necessary because these operators are already defined (with unsuitable types and
semantics) on the base type ``Any``, so they cannot be replaced by extension methods.
Similarly, to combine a Scala ``String`` with a ``Rep[String]`` or ``ConstColumn[String]``,
don't use ``str + rep`` syntax, since Scala provides a universal ``+`` operator for strings
that works with ``Any``. Instead use slick's ``++`` operator: ``(str: Rep[String]) ++ rep``

Collection values are represented by the ``Query`` class (a ``Rep[Seq[T]]``) which contains many
standard collection methods like ``flatMap``, ``filter``, ``take`` and ``groupBy``. Due to the two
Expand Down

0 comments on commit 13fbd7f

Please sign in to comment.