Trait

io.rdbc.sapi

ExecutableStatement

Related Doc: package sapi

Permalink

trait ExecutableStatement extends AnyRef

Represents an executable statement.

Executable statement is a statement that has all parameters provided and is ready to be executed.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecutableStatement
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def execute()(implicit timeout: Timeout): Future[Unit]

    Permalink

    Executes this statement ignoring any resulting information.

    Executes this statement ignoring any resulting information.

    After the operation takes longer time than timeout, operation will be aborted. Note however, that it may not be feasible to abort the operation immediately.

    Returned future can fail with:

  2. abstract def executeForFirstRow()(implicit timeout: Timeout): Future[Option[Row]]

    Permalink

    Executes this statement and returns the first row returned by a database engine.

    Executes this statement and returns the first row returned by a database engine.

    If no rows are found, None will be returned.

    After the operation takes longer time than timeout, operation will be aborted. Note however, that it may not be feasible to abort the operation immediately.

    Returned future can fail with:

  3. abstract def executeForRowsAffected()(implicit timeout: Timeout): Future[Long]

    Permalink

    Executes this statement returning a number of rows that were affected.

    Executes this statement returning a number of rows that were affected.

    After the operation takes longer time than timeout, operation will be aborted. Note however, that it may not be feasible to abort the operation immediately.

    Returned future can fail with:

  4. abstract def executeForSet()(implicit timeout: Timeout): Future[ResultSet]

    Permalink

    Executes this statement and returns a ResultSet instance.

    Executes this statement and returns a ResultSet instance.

    After execution all resulting rows will be pulled from a database and buffered in the resulting object. If expected result set is very big this may cause out of memory errors.

    After the operation takes longer time than timeout, operation will be aborted. Note however, that it may not be feasible to abort the operation immediately.

    Returned future can fail with:

  5. abstract def executeForValue[A](valExtractor: (Row) ⇒ A)(implicit timeout: Timeout): Future[Option[A]]

    Permalink

    Executes this statement and returns a single column value from the first row returned by a database engine.

    Executes this statement and returns a single column value from the first row returned by a database engine.

    If no rows are found, None will be returned.

    Example:

    for {
      val id = 10
      select <- conn.statement(sql"select name from users where id = $id")
      name <- select.executeForValue(_.str("name"))
    } yield name

    After the operation takes longer time than timeout, operation will be aborted. Note however, that it may not be feasible to abort the operation immediately.

    Returned future can fail with:

    valExtractor

    function used to extract value from the returned row

  6. abstract def stream()(implicit timeout: Timeout): RowPublisher

    Permalink

    Returns a RowPublisher instance that can be used to stream rows from the database leveraging Reactive Streams specification's Publisher with backpressure.

    Returns a RowPublisher instance that can be used to stream rows from the database leveraging Reactive Streams specification's Publisher with backpressure.

    The statement is not executed until the stream is subscribed to.

    After the operation takes longer time than timeout, operation will be aborted. Note however, that it may not be feasible to abort the operation immediately.

    This method doesn't throw exceptions on failures. Failures are reported by the returned publisher.

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ExecutableStatement to any2stringadd[ExecutableStatement] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ExecutableStatement, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ExecutableStatement to ArrowAssoc[ExecutableStatement] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. def ensuring(cond: (ExecutableStatement) ⇒ Boolean, msg: ⇒ Any): ExecutableStatement

    Permalink
    Implicit information
    This member is added by an implicit conversion from ExecutableStatement to Ensuring[ExecutableStatement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (ExecutableStatement) ⇒ Boolean): ExecutableStatement

    Permalink
    Implicit information
    This member is added by an implicit conversion from ExecutableStatement to Ensuring[ExecutableStatement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): ExecutableStatement

    Permalink
    Implicit information
    This member is added by an implicit conversion from ExecutableStatement to Ensuring[ExecutableStatement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): ExecutableStatement

    Permalink
    Implicit information
    This member is added by an implicit conversion from ExecutableStatement to Ensuring[ExecutableStatement] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. abstract def executeForKey[K]()(implicit arg0: ClassTag[K], timeout: Timeout): Future[K]

    Permalink

    [use case] Executes this statement and returns a single generated key.

    [use case]

    Executes this statement and returns a single generated key.

    After the operation takes longer time than timeout, operation will be aborted. Note however, that it may not be feasible to abort the operation immediately.

    Returned future can fail with:

    K

    type of the returned key

    Full Signature

    abstract def executeForKey[K]()(implicit arg0: ClassTag[K], timeout: Timeout): Future[K]

  15. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ExecutableStatement to StringFormat[ExecutableStatement] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  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( ... )
  27. def [B](y: B): (ExecutableStatement, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ExecutableStatement to ArrowAssoc[ExecutableStatement] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ExecutableStatement to any2stringadd[ExecutableStatement]

Inherited by implicit conversion StringFormat from ExecutableStatement to StringFormat[ExecutableStatement]

Inherited by implicit conversion Ensuring from ExecutableStatement to Ensuring[ExecutableStatement]

Inherited by implicit conversion ArrowAssoc from ExecutableStatement to ArrowAssoc[ExecutableStatement]

Ungrouped