Object

scalikejdbc.QueryDSLFeature

QueryDSL

Related Doc: package QueryDSLFeature

Permalink

object QueryDSL

Prefix object to avoid name confliction.

withSQL { QueryDSL.select.from(User as u).where.eq(u.id, 123) }
Source
QueryDSLFeature.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QueryDSL
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. object delete

    Permalink

    Query Interface for delete query.

    Query Interface for delete query.

    implicit val session = AutoSession
    val (u, c) = (User.syntax("u"), User.column)
    withSQL { delete.from(User as u).where.eq(u.id, 1) }.update.apply()
    applyUpdate { delete.from(User).where.eq(c.id, 1) }
  7. object deleteFrom

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. object insert

    Permalink

    Query Interface for insert query.

    Query Interface for insert query.

    implicit val session = AutoSession
    val (u, c) = (User.syntax("u"), User.column)
    withSQL { insert.into(User).columns(c.id, c.name, c.createdAt).values(1, "Alice", DateTime.now) }.update.apply()
    applyUpdate { insert.into(User).values(2, "Bob", DateTime.now) }
  14. object insertInto

    Permalink
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. object select

    Permalink

    Query Interface for select query.

    Query Interface for select query.

    implicit val session = AutoSession
    val u = User.syntax("u")
    val user = withSQL { select.from(User).where.eq.(u.id, 123) }.map(User(u.resultName)).single.apply()
    val userIdAndName = withSQL {
      select(u.result.id, u.result.name).from(User).where.eq.(u.id, 123)
    }.map(User(u.resultName)).single.apply()
  20. object selectFrom

    Permalink
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. object update

    Permalink

    Query Interface for update query.

    Query Interface for update query.

    implicit val session = AutoSession
    val u = User.syntax("u")
    withSQL { update(User as u).set(u.name -> "Chris", u.updatedAt -> DateTime.now).where.eq(u.id, 1) }.update.apply()
    applyUpdate { update(User as u).set(u.name -> "Dennis").where.eq(u.id, 1) }
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped