Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3 additions
and
0 deletions.
-
+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 |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.