Package

org

scanamo

Permalink

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. type EvaluationKey = Map[String, AttributeValue]

    Permalink
  2. sealed abstract class SecondaryIndex[V] extends AnyRef

    Permalink

    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

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

    Permalink

    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()
    >>> 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(client)(operations)
    ... }
    List(Right(Transport(Underground,Central)), Right(Transport(Underground,Circle)))

Value Members

  1. object Scanamo

    Permalink

    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. object ScanamoAsync

    Permalink

    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. object ScanamoFree

    Permalink
  4. package ops

    Permalink
  5. package query

    Permalink
  6. package request

    Permalink
  7. object syntax

    Permalink
  8. package update

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped