TableQueryable

scalasql.query.Table.Internal.TableQueryable
class TableQueryable[Q, R <: Product](walkLabels0: () => Seq[String], walkExprs0: Q => Seq[Expr[_]], construct0: ResultSetIterator => R, deconstruct0: R => Q) extends Row[Q, R]

Attributes

Graph
Supertypes
trait Row[Q, R]
trait Queryable[Q, R]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def construct(args: ResultSetIterator): R
def deconstruct(r: R): Q

Takes the Scala-value of type R and converts it into a database-value of type Q, potentially representing multiple columns. Used for inserting Scala values into INSERT or VALUES clauses

Takes the Scala-value of type R and converts it into a database-value of type Q, potentially representing multiple columns. Used for inserting Scala values into INSERT or VALUES clauses

Attributes

def walkExprs(q: Q): Seq[Expr[_]]

Returns a sequence of expressions created by this queryable value. Used to generate the column list SELECT clauses, both for nested and top level SELECTs

Returns a sequence of expressions created by this queryable value. Used to generate the column list SELECT clauses, both for nested and top level SELECTs

Attributes

def walkLabels(): Seq[List[String]]

Inherited methods

def construct(q: Q, args: ResultSetIterator): R

Construct a Scala return value from the Queryable.ResultSetIterator representing the return value of this queryable value

Construct a Scala return value from the Queryable.ResultSetIterator representing the return value of this queryable value

Attributes

Inherited from:
Row
def isExecuteUpdate(q: Q): Boolean

Whether this queryable value is executed using java.sql.Statement.executeUpdate instead of .executeQuery. Note that this needs to be known ahead of time, and cannot be discovered by just calling .execute, because some JDBC drivers do not properly handle updates in the .execute call

Whether this queryable value is executed using java.sql.Statement.executeUpdate instead of .executeQuery. Note that this needs to be known ahead of time, and cannot be discovered by just calling .execute, because some JDBC drivers do not properly handle updates in the .execute call

Attributes

Inherited from:
Row
def isGetGeneratedKeys(q: Q): Option[Row[_, _]]

Whether this queryable value is executed using java.sql.Statement.getGeneratedKeys instead of .executeQuery.

Whether this queryable value is executed using java.sql.Statement.getGeneratedKeys instead of .executeQuery.

Attributes

Inherited from:
Row
def isSingleRow(q: Q): Boolean

Whether this query expects a single row to be returned, if so we can assert on the number of rows and raise an error if 0 rows or 2+ rows are present

Whether this query expects a single row to be returned, if so we can assert on the number of rows and raise an error if 0 rows or 2+ rows are present

Attributes

Inherited from:
Row
def renderSql(q: Q, ctx: Context): SqlStr

Converts the given queryable value into a SqlStr, that can then be executed by the underlying SQL JDBC interface

Converts the given queryable value into a SqlStr, that can then be executed by the underlying SQL JDBC interface

Attributes

Inherited from:
Row
def walkLabels(q: Q): Seq[List[String]]

Returns a sequence of labels, each represented by a list of tokens, representing the expressions created by this queryable value. Used to add AS foo_bar labels to the generated queries, to aid in readability

Returns a sequence of labels, each represented by a list of tokens, representing the expressions created by this queryable value. Used to add AS foo_bar labels to the generated queries, to aid in readability

Attributes

Inherited from:
Row
def walkLabelsAndExprs(q: Q): Walked

Attributes

Inherited from:
Queryable