scalasql.query
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait WithSqlExpr[Q]trait Query[R]trait Renderableclass Objecttrait Matchableclass AnyShow all
A variant of Expr representing a raw table column; allows assignment in updates and inserts
A variant of Expr representing a raw table column; allows assignment in updates and inserts
Attributes
- Companion
- object
- Supertypes
-
trait Expr[T]trait Renderableclass Objecttrait Matchableclass Any
A SQL SELECT
query, with ORDER BY
, LIMIT
, OFFSET
, or UNION
clauses
A SQL SELECT
query, with ORDER BY
, LIMIT
, OFFSET
, or UNION
clauses
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CompoundSelect.type
A SQL DELETE
query
A SQL DELETE
query
Attributes
- Companion
- object
- Supertypes
-
trait Base[Q]trait WithSqlExpr[Q]trait ExecuteUpdate[Int]trait Query[Int]trait Renderableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class Impl[Q]
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FlatJoin.type
Represents an Insert query that you want to call JdbcStatement.getGeneratedKeys
on to retrieve any auto-generated primary key values from the results
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
GetGeneratedKeys.type
Models a SQL GROUP BY
clause
Models a SQL GROUP BY
clause
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A SQL INSERT VALUES
query
A SQL INSERT VALUES
query
Attributes
- Companion
- object
- Supertypes
-
trait ExecuteUpdate[Int]trait Query[Int]trait Renderableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
InsertColumns.type
A SQL INSERT SELECT
query
A SQL INSERT SELECT
query
Attributes
- Companion
- object
- Supertypes
-
trait ExecuteUpdate[Int]trait Query[Int]trait Renderableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
InsertSelect.type
Attributes
- Companion
- object
- Supertypes
-
trait ExecuteUpdate[Int]trait Query[Int]trait Renderableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
InsertValues.type
Models a SQL JOIN
clause
Models a SQL JOIN
clause
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Typeclass to allow .join
to append tuples, such that Query[(A, B)].join(Query[C])
returns a flat Query[(A, B, C)]
rather than a nested Query[((A, B), B)]
. Can't eliminate nesting in all cases, but eliminates nesting often enough to be useful
Typeclass to allow .join
to append tuples, such that Query[(A, B)].join(Query[C])
returns a flat Query[(A, B, C)]
rather than a nested Query[((A, B), B)]
. Can't eliminate nesting in all cases, but eliminates nesting often enough to be useful
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- trait
- Supertypes
- Self type
-
JoinAppend.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait JoinAppendobject JoinAppend
Attributes
- Companion
- object
- Supertypes
-
trait WithSqlExpr[Q]class Objecttrait Matchableclass Any
- Known subtypes
-
Show all
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Show all
Wrapper class with extension methods to add support for JOIN LATERAL
, which allow for JOIN
clauses to access the results of earlier JOIN
and FROM
clauses. Only supported by Postgres and MySql
Wrapper class with extension methods to add support for JOIN LATERAL
, which allow for JOIN
clauses to access the results of earlier JOIN
and FROM
clauses. Only supported by Postgres and MySql
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
A query with a SQL ON CONFLICT
clause, typically an INSERT
or an UPDATE
A query with a SQL ON CONFLICT
clause, typically an INSERT
or an UPDATE
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
OnConflict.type
Models a SQL ORDER BY
clause
Models a SQL ORDER BY
clause
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A SQL Query, either a Query.Multiple that returns multiple rows, or a Query.Single that returns a single row
A SQL Query, either a Query.Multiple that returns multiple rows, or a Query.Single that returns a single row
Attributes
- Companion
- object
- Supertypes
-
trait Renderableclass Objecttrait Matchableclass Any
- Known subtypes
-
trait DelegateQuery[R]class Single[R]trait ExecuteUpdate[R]trait Delete[Q]class Impl[Q]Show all
A query with a RETURNING
clause
A query with a RETURNING
clause
Attributes
- Companion
- object
- Supertypes
-
trait WithSqlExpr[Q]trait Renderableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
A SQL SELECT
query, possible with JOIN
, WHERE
, GROUP BY
, ORDER BY
, LIMIT
, OFFSET
clauses
A SQL SELECT
query, possible with JOIN
, WHERE
, GROUP BY
, ORDER BY
, LIMIT
, OFFSET
clauses
Models the various components of a SQL SELECT:
SELECT DISTINCT column, AGG_FUNC(column_or_expression), …
FROM mytable
JOIN another_table ON mytable.column = another_table.column
WHERE constraint_expression
GROUP BY column HAVING constraint_expression
ORDER BY column ASC/DESC
LIMIT count OFFSET COUNT;
Good syntax reference:
https://www.cockroachlabs.com/docs/stable/selection-queries#set-operations https://www.postgresql.org/docs/current/sql-select.html
Attributes
- Companion
- object
- Supertypes
- Known subtypes
-
Show all
A SELECT
query, with FROM
/JOIN
/WHERE
/GROUP BY
clauses, but without ORDER BY
/LIMIT
/TAKE
/UNION
clauses
A SELECT
query, with FROM
/JOIN
/WHERE
/GROUP BY
clauses, but without ORDER BY
/LIMIT
/TAKE
/UNION
clauses
Attributes
- Companion
- object
- Supertypes
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SimpleSelect.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Expr[T]trait Renderableclass Objecttrait Matchableclass AnyShow all
Models a subquery: a SELECT
, VALUES
, nested WITH
, etc.
Models a subquery: a SELECT
, VALUES
, nested WITH
, etc.
Attributes
- Companion
- object
- Supertypes
-
trait Fromclass Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SubqueryRef.type
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TableMacros.type
Models a SQL FROM
clause
Models a SQL FROM
clause
Attributes
- Supertypes
-
trait Fromclass Objecttrait Matchableclass Any
A SQL WITH
clause
Attributes
- Supertypes
-
trait Fromclass Objecttrait Matchableclass Any