Transactionless

lightdb.store.Transactionless
case class Transactionless[Doc <: Document[Doc], Model <: DocumentModel[Doc]](store: Store[Doc, Model])

Convenience feature for simple one-off operations removing the need to manually create a transaction around it.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Classlikes

object json

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
json.type

Value members

Concrete methods

def apply[V](f: Model => (UniqueIndex[Doc, V], V)): Task[Doc]
def apply(id: Id[Doc]): Task[Doc]
def count: Task[Int]
def delete[V](f: Model => (UniqueIndex[Doc, V], V)): Task[Boolean]
def delete(id: Id[Doc]): Task[Boolean]
def get[V](f: Model => (UniqueIndex[Doc, V], V)): Task[Option[Doc]]
def get(id: Id[Doc]): Task[Option[Doc]]
def getAll(ids: Seq[Id[Doc]]): Task[List[Doc]]
def insert(doc: Doc): Task[Doc]
def insert(docs: Seq[Doc]): Task[Seq[Doc]]
def list: Task[List[Doc]]
def modify(id: Id[Doc], lock: Boolean, deleteOnNone: Boolean)(f: Forge[Option[Doc], Option[Doc]]): Task[Option[Doc]]
def truncate: Task[Int]
def upsert(doc: Doc): Task[Doc]
def upsert(docs: Seq[Doc]): Task[Seq[Doc]]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product