Query

ldbc.statement.Query
trait Query[A, B] extends SQL

Trait represents a read-only query 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

Attributes

Source
Query.scala
Graph
Supertypes
trait SQL
class Object
trait Matchable
class Any
Known subtypes
class GroupBy[A, B]
class Having[A, B]
class Q[A, B]
class Offset[A, B]
class OrderBy[A, B]
class Select[A, B]
class Q[A, B]
Show all

Members list

Value members

Abstract methods

def columns: Column[B]

Union-type column list

Union-type column list

Attributes

Source
Query.scala
def table: A

Trait for generating SQL table information.

Trait for generating SQL table information.

Attributes

Source
Query.scala

Concrete methods

def query: Query[B]

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

Source
Query.scala
def queryTo[P <: Product](using m1: ProductOf[P], m2: ProductOf[B], check: m1.MirroredElemTypes =:= m2.MirroredElemTypes, decoder: Decoder[P]): Query[P]

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

Source
Query.scala

Inherited and Abstract methods

def ++(sql: SQL): SQL

Attributes

Inherited from:
SQL
Source
SQL.scala

statement has '?' that the statement has.

statement has '?' that the statement has.

Attributes

Inherited from:
SQL
Source
SQL.scala

an SQL statement that may contain one or more '?' IN parameter placeholders

an SQL statement that may contain one or more '?' IN parameter placeholders

Attributes

Inherited from:
SQL
Source
SQL.scala