swaydb
package swaydb
Package object contains convenience functions - syntax sugar.
- Alphabetic
- By Inheritance
- swaydb
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
sealed
trait
Apply[+V] extends AnyRef
Output for PureFunction instances.
-
case class
Map[K, V, F, BAG[_]] extends Source[K, (K, V), BAG] with MapT[K, V, F, BAG] with Product with Serializable
Map database API.
Map database API.
For documentation check - http://swaydb.io/
-
trait
MapT[K, V, F, BAG[_]] extends Source[K, (K, V), BAG] with SetMapT[K, V, BAG]
Base trait for a basic SwayDB Map type.
-
case class
MultiMap[M, K, V, F, BAG[_]] extends Schema[M, K, V, F, BAG] with MapT[K, V, F, BAG] with Product with Serializable
MultiMap extends swaydb.Map's API to allow storing multiple Maps withing a single Map.
MultiMap extends swaydb.Map's API to allow storing multiple Maps withing a single Map.
MultiMap is just a simple extension that uses custom data types (MultiKey) and KeyOrder (MultiKey.ordering) for it's API.
- sealed trait PureFunction[+K, +V, R <: Apply[V]] extends AnyRef
-
case class
Queue[A] extends Stream[A, Less] with LazyLogging with Product with Serializable
Provides a Set instance the ability to be used as a queue.
-
abstract
class
ScalaMapBase[K, V] extends scala.collection.mutable.Map[K, V]
- Attributes
- protected
-
abstract
class
ScalaSetBase[A, F] extends scala.collection.mutable.Set[A]
- Attributes
- protected
-
abstract
class
ScalaSetBaseFromMap[A] extends scala.collection.mutable.Set[A]
- Attributes
- protected
-
case class
Set[A, F, BAG[_]] extends Source[A, A, BAG] with Product with Serializable
Set database API.
Set database API.
For documentation check - http://swaydb.io/
-
case class
SetMap[K, V, BAG[_]] extends Source[K, (K, V), BAG] with SetMapT[K, V, BAG] with Product with Serializable
A SetMap is a simple wrapper around Set to provide Map like API on Set storage format.
-
trait
SetMapT[K, V, BAG[_]] extends Source[K, (K, V), BAG]
Base trait for a basic SwayDB SetMap type.
- implicit class StorageDoubleImplicits extends AnyRef
- implicit class StorageIntImplicits extends AnyRef
Value Members
- implicit def dirToDirs(dir: Dir*): Seq[Dir]
- implicit def pathSeqToDirs(paths: Seq[Path]): Seq[Dir]
- implicit def pathStringToDir(path: String): Dir
- implicit def pathToDir(path: Path): Dir
- implicit def pathToDirs(dir: Path): Seq[Dir]
- implicit def pathsToDirs(paths: Path*): Seq[Dir]
- implicit def stringToPath(path: String): Path
- implicit def tupleSeqToDirs(dir: Seq[(Path, Int)]): Seq[Dir]
- implicit def tupleStringSeqToDirs(dir: Seq[(String, Int)]): Seq[Dir]
- implicit def tupleStringToDirs(dir: (String, Int)): Seq[Dir]
- implicit def tupleToDir(dir: (Path, Int)): Dir
- implicit def tupleToDirs(dir: (Path, Int)): Seq[Dir]
- implicit def tuplesToDirs(dir: (Path, Int)*): Seq[Dir]
- object Apply
-
object
KeyOrderConverter
- Attributes
- protected
- object MultiMap extends Serializable
- object PureFunction
-
object
PureFunctionJava
Helper function types Java so that specifying the return type is required for every function.
Helper function types Java so that specifying the return type is required for every function.
Uses Expiration and Optional instead of Scala's native Deadline and Option types.
The above scala function can still be used in Java because these extend the same parent PureFunction[K, V, R] type.
-
object
PureFunctionScala
Function types for Scala.
Function types for Scala.
Your registered functions implements one of the these functions that informs SwayDB of target data for the on the applied key should be read to execute the function.
- object Queue extends Serializable
- object SetMap extends Serializable
-
object
SwayDB extends LazyLogging
Instance used for creating/initialising databases.