Select
A model for constructing SELECT statements in MySQL.
Type parameters
- A
-
The type of Table. in the case of Join, it is a Tuple of type Table.
- B
-
Scala types to be converted by Decoder
Value parameters
- columns
-
Union-type column list
- params
-
A list of Traits that generate values from Parameter, allowing PreparedStatement to be set to a value by index only.
- statement
-
SQL statement string
- table
-
Trait for generating SQL table information.
Attributes
- Source
- Select.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Definition Classes
- Source
- Select.scala
A method for setting the GROUP BY condition in a SELECT statement.
A method for setting the GROUP BY condition in a SELECT statement.
TableQuery[City]
.select(_.name)
.groupBy(_.name)
Value parameters
- func
-
Function to construct an expression using the columns that Table has.
Attributes
- Source
- Select.scala
A method for setting the WHERE condition in a SELECT statement.
A method for setting the WHERE condition in a SELECT statement.
TableQuery[City]
.select(_.name)
.where(_.name === "Tokyo")
Value parameters
- func
-
Function to construct an expression using the columns that Table has.
Attributes
- Source
- Select.scala
A method for setting the WHERE condition in a SELECT statement.
A method for setting the WHERE condition in a SELECT statement.
val opt: Option[String] = ???
TableQuery[City]
.select(_.name)
.whereOpt(city => opt.map(value => city.name === value))
Value parameters
- func
-
Function to construct an expression using the columns that Table has.
Attributes
- Source
- Select.scala
A method for setting the WHERE condition in a SELECT statement.
A method for setting the WHERE condition in a SELECT statement.
TableQuery[City]
.select(_.name)
.whereOpt(Some("Tokyo"))((city, value) => city.name === value)
Value parameters
- func
-
Function to construct an expression using the columns that Table has.
Attributes
- Source
- Select.scala
Inherited methods
A method for setting the LIMIT condition in a SELECT statement.
A method for setting the LIMIT condition in a SELECT statement.
TableQuery[City]
.select(_.population)
.limit(10)
Value parameters
- length
-
The number of rows to return.
Attributes
- Inherited from:
- QueryProvider
- Source
- Limit.scala
A method for setting the ORDER BY condition in a statement.
A method for setting the ORDER BY condition in a statement.
TableQuery[City]
.select(_.population)
.orderBy(_.population.desc)
Value parameters
- func
-
Function to construct an expression using the columns that Table has.
Attributes
- Inherited from:
- Provider (hidden)
- Source
- OrderBy.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
A method to convert a query to a ldbc.dsl.Query.
A method to convert a query to a ldbc.dsl.Query.
TableQuery[User].select(v => v.name *: v.age).query
Attributes
- Returns
-
A ldbc.dsl.Query instance
- Inherited from:
- Query
- Source
- Query.scala
A method to convert a query to a ldbc.dsl.Query.
A method to convert a query to a ldbc.dsl.Query.
TableQuery[User].selectAll.queryTo[User]
Attributes
- Returns
-
A ldbc.dsl.Query instance
- Inherited from:
- Query
- Source
- Query.scala