case class SqlWithParams(sql: String, params: ImmutIndexedSeq[Any]) extends Product with Serializable
Represent a sql statement along with parameters.
Instances of this class are supposed to be constructed using sql
string interpolator like this:
import io.rdbc.sapi._ val id = 0 val s: SqlWithParams = sql"select * from test where id = $id"
Instances created by the interpolator can be composed:
import io.rdbc.sapi._ val x = 0 val y = 0 val s: SqlWithParams = sql"select * from test where x = $x" + sql"and y = $y"
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SqlWithParams
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new SqlWithParams(sql: String, params: ImmutIndexedSeq[Any])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: SqlWithParams): SqlWithParams
-
def
->[B](y: B): (SqlWithParams, B)
- Implicit
- This member is added by an implicit conversion from SqlWithParams to ArrowAssoc[SqlWithParams] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
ensuring(cond: (SqlWithParams) ⇒ Boolean, msg: ⇒ Any): SqlWithParams
- Implicit
- This member is added by an implicit conversion from SqlWithParams to Ensuring[SqlWithParams] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (SqlWithParams) ⇒ Boolean): SqlWithParams
- Implicit
- This member is added by an implicit conversion from SqlWithParams to Ensuring[SqlWithParams] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): SqlWithParams
- Implicit
- This member is added by an implicit conversion from SqlWithParams to Ensuring[SqlWithParams] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): SqlWithParams
- Implicit
- This member is added by an implicit conversion from SqlWithParams to Ensuring[SqlWithParams] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from SqlWithParams to StringFormat[SqlWithParams] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val params: ImmutIndexedSeq[Any]
- val sql: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (SqlWithParams, B)
- Implicit
- This member is added by an implicit conversion from SqlWithParams to ArrowAssoc[SqlWithParams] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Shadowed Implicit Value Members
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from SqlWithParams to any2stringadd[SqlWithParams] performed by method any2stringadd in scala.Predef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(sqlWithParams: any2stringadd[SqlWithParams]).+(other)
- Definition Classes
- any2stringadd
TODO