Permalink
Browse files

Update queries.rst

  • Loading branch information...
1 parent 4a5fa61 commit 13fbd7f42924206f747b1e80732a4dea69fc713b @virusdave virusdave committed Jun 1, 2016
Showing with 3 additions and 0 deletions.
  1. +3 −0 slick/src/sphinx/queries.rst
@@ -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

0 comments on commit 13fbd7f

Please sign in to comment.