ResultConverter

slick.relational.ResultConverter
trait ResultConverter[R, W, U, T] extends Dumpable

A ResultConverter is used to read data from a result, update a result, and set parameters of a query.

Attributes

Source
ResultConverter.scala
Graph
Supertypes
trait Dumpable
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Types

type Reader = R

Attributes

Source
ResultConverter.scala
type Updater = U

Attributes

Source
ResultConverter.scala
type Writer = W

Attributes

Source
ResultConverter.scala

Value members

Abstract methods

def read(pr: R): T

Attributes

Source
ResultConverter.scala
def set(value: T, pp: W, offset: Int): Unit

Writes converted value.

Writes converted value.

Value parameters

offset

The number of PreparedStatement parameters to skip. In a single-row operation (ex. insert into tbl values (?, ?, ?)), it should be 0. In a bulk insert operation, it should be ''C'' × ''R'', where ''C'' is the number of columns and ''R'' is the number of rows that have already been set.

Attributes

Source
ResultConverter.scala
def update(value: T, pr: U): Unit

Attributes

Source
ResultConverter.scala
def width: Int

The width of this converter (in columns), corresponding to the number of columns that will be read or written by it.

The width of this converter (in columns), corresponding to the number of columns that will be read or written by it.

Attributes

Source
ResultConverter.scala

Concrete methods

override def getDumpInfo: DumpInfo

Return the name, main info, attribute info and named children

Return the name, main info, attribute info and named children

Attributes

Definition Classes
Source
ResultConverter.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
ResultConverter.scala