A SQL VALUES
clause, used to treat a sequence of primitive Ts as a Select query.
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Inherited methods
Performs a CROSS JOIN
, which is an INNER JOIN
but without the ON
clause
Performs a CROSS JOIN
, which is an INNER JOIN
but without the ON
clause
Attributes
- Inherited from:
- JoinOps
Version of crossJoin
meant for usage in for
-comprehensions
Drops the first n rows from this Select. Like when used in Scala collections, if called multiple times the dropped rows add up
Subtracts the other from this Select, returning only rows present this but absent in other, and removing duplicates. Translates into SQL EXCEPT
Filters this Select with the given predicate consuming provided option as a part of predicate's input, if this option is Some[T]
Translates into a SQL GROUP BY
, takes a function specifying the group-key and a function specifying the group-aggregate.
Shorthand for .take(1).single
:
Shorthand for .take(1).single
:
- If the query returns a single row, this returns it as a single value of type R
- If the query returns multiple rows, returns the first as a single value of type R and discards the rest
- If the query returns zero rows, throws an exception.
Attributes
- Inherited from:
- Select
Intersects the result rows of this Select with another, preserving only rows present in both this and the other and removing duplicates. Translates into SQL INTERSECT
Version of join
meant for usage in for
-comprehensions
Version of leftJoin
meant for usage in for
-comprehensions
Attributes
- Definition Classes
- Inherited from:
- DelegateQueryable
Attributes
- Inherited from:
- DelegateQueryable
Attributes
- Inherited from:
- DelegateQueryable
Asserts that this query returns exactly one row, and returns a single value of type R rather than a Seq[R]
. Throws an exception if zero or multiple rows are returned.
Asserts that this query returns exactly one row, and returns a single value of type R rather than a Seq[R]
. Throws an exception if zero or multiple rows are returned.
Attributes
- Inherited from:
- Select
Sorts this Select via the given expression. Translates into a SQL ORDER BY
clause. Can be called more than once to sort on multiple columns, with the last call to sortBy taking priority. Can be followed by asc, desc, nullsFirst or nullsLast to configure the sort order
Sorts this Select via the given expression. Translates into a SQL ORDER BY
clause. Can be called more than once to sort on multiple columns, with the last call to sortBy taking priority. Can be followed by asc, desc, nullsFirst or nullsLast to configure the sort order
Attributes
- Definition Classes
- Inherited from:
- Proxy
Only returns the first n rows from this Select. Like when used in Scala collections, if called multiple times only the smallest value of n takes effect
Converts this Select into an Expr, assuming it returns a single row and a single column. Note that if this returns multiple rows, behavior is database-specific, with some like Sqlite simply taking the first row while others like Postgres/MySql throwing exceptions