Packages

p

org

scanamo

package scanamo

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. scanamo
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Scanamo extends AnyRef

    Provides a simplified interface for reading and writing case classes to DynamoDB

    Provides a simplified interface for reading and writing case classes to DynamoDB

    To avoid blocking, use org.scanamo.ScanamoAsync

  2. class ScanamoAsync extends AnyRef

    Provides the same interface as org.scanamo.Scanamo, except that it requires an implicit concurrent.ExecutionContext and returns a concurrent.Future

    Provides the same interface as org.scanamo.Scanamo, except that it requires an implicit concurrent.ExecutionContext and returns a concurrent.Future

    Note that that com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsyncClient just uses an java.util.concurrent.ExecutorService to make calls asynchronously

  3. sealed abstract class SecondaryIndex[V] extends AnyRef

    Represents a secondary index on a DynamoDB table.

    Represents a secondary index on a DynamoDB table.

    Can be constructed via the index method on Table

  4. case class Table[V](name: String)(implicit evidence$1: DynamoFormat[V]) extends Product with Serializable

    Represents a DynamoDB table that operations can be performed against

    Represents a DynamoDB table that operations can be performed against

    >>> case class Transport(mode: String, line: String)
    
    >>> val client = LocalDynamoDB.client()
    >>> val scanamo = Scanamo(client)
    >>> import com.amazonaws.services.dynamodbv2.model.ScalarAttributeType._
    
    >>> LocalDynamoDB.withRandomTable(client)("mode" -> S, "line" -> S) { t =>
    ...   import org.scanamo.syntax._
    ...   import org.scanamo.auto._
    ...   val transport = Table[Transport](t)
    ...   val operations = for {
    ...     _ <- transport.putAll(Set(
    ...       Transport("Underground", "Circle"),
    ...       Transport("Underground", "Metropolitan"),
    ...       Transport("Underground", "Central")))
    ...     results <- transport.query("mode" -> "Underground" and ("line" beginsWith "C"))
    ...   } yield results.toList
    ...   scanamo.exec(operations)
    ... }
    List(Right(Transport(Underground,Central)), Right(Transport(Underground,Circle)))

Value Members

  1. object Scanamo
  2. object ScanamoAsync
  3. object ScanamoFree
  4. object syntax

Inherited from AnyRef

Inherited from Any

Ungrouped