Query

ldbc.dsl.Query
See theQuery companion object
trait Query[T]

Trait for determining what type of search system statements are retrieved from the database.

Type parameters

T

Column Tuples

Attributes

Companion
object
Source
Query.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def nel: DBIO[NonEmptyList[T]]

A method to return the data to be retrieved from the database as a NonEmptyList type. If there is no data, an exception is raised.

A method to return the data to be retrieved from the database as a NonEmptyList type. If there is no data, an exception is raised.

Attributes

Source
Query.scala
def option: DBIO[Option[T]]

A method to return the data to be retrieved from the database as an Option type. If the data does not exist, None is returned. If there is more than one row to be returned, an exception is raised.

A method to return the data to be retrieved from the database as an Option type. If the data does not exist, None is returned. If there is more than one row to be returned, an exception is raised.

Attributes

Source
Query.scala
def stream: Stream[DBIO, T]

A method to return the data to be retrieved from the database as a stream. If there is no data, an empty stream is returned.

A method to return the data to be retrieved from the database as a stream. If there is no data, an empty stream is returned.

Attributes

Source
Query.scala
def stream(fetchSize: Int): Stream[DBIO, T]

A method to return the data to be retrieved from the database as a stream with a specified fetch size. If there is no data, an empty stream is returned.

A method to return the data to be retrieved from the database as a stream with a specified fetch size. If there is no data, an empty stream is returned.

Value parameters

fetchSize

The number of rows to be fetched at a time (must be positive)

Attributes

Throws
IllegalArgumentException

if fetchSize is zero or negative

Source
Query.scala
def to[G[_]](using FactoryCompat[T, G[T]]): DBIO[G[T]]

Functions for safely retrieving data from a database in an array or Option type.

Functions for safely retrieving data from a database in an array or Option type.

Attributes

Source
Query.scala
def unsafe: DBIO[T]

A method to return the data to be retrieved from the database as is. If the data does not exist, an exception is raised. Use the to method if you want to retrieve individual data.

A method to return the data to be retrieved from the database as is. If the data does not exist, an exception is raised. Use the to method if you want to retrieve individual data.

Attributes

Source
Query.scala