SQLQuery

lightdb.sql.query.SQLQuery
See theSQLQuery companion object
case class SQLQuery(parts: List[SQLPart]) extends SQLPart

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SQLPart
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def arg(values: Json*): SQLQuery
def bind(bindings: (String, Json)*): SQLQuery
def fillPlaceholder(values: Json*): SQLQuery
def fillPlaceholder(name: String, values: Json*): SQLQuery

Generally, only a single value is supplied to replace a named value. However, if multiple values are provided, it converts this into a multi-argument replacement.

Generally, only a single value is supplied to replace a named value. However, if multiple values are provided, it converts this into a multi-argument replacement.

Value parameters

name

the name of the placeholder variable

values

the values to replace it with

Attributes

def fragment(sql: String): SQLQuery
def placeholder(name: String): SQLQuery
def populate[Doc <: Document[Doc], Model <: DocumentModel[Doc]](ps: PreparedStatement, transaction: SQLStoreTransaction[Doc, Model]): Unit
def replacePlaceholder(name: String, part: SQLPart): SQLQuery

Replaces a placeholder value with a SQLPart. This is useful for templating when SQL needs to be generated at runtime to populate sections of SQL.

Replaces a placeholder value with a SQLPart. This is useful for templating when SQL needs to be generated at runtime to populate sections of SQL.

Value parameters

name

the name of the placeholder variable

part

the part to replace it with

Attributes

def values(bindings: (String, Any)*): SQLQuery
def withParts(parts: SQLPart*): SQLQuery

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val args: List[Json]
lazy val bindMap: Map[String, Json]
lazy val flatParts: List[SQLPart]
lazy val hasUnboundPositional: Boolean
lazy val missingBinds: List[String]
lazy val query: String