t

lightdb.collection.Collection.t
object t

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
t.type

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)): Doc
def apply(id: Id[Doc]): Doc
def count: Int
def delete[V](f: Model => (UniqueIndex[Doc, V], V)): Boolean
def delete(id: Id[Doc]): Boolean
def get[V](f: Model => (UniqueIndex[Doc, V], V)): Option[Doc]
def get(id: Id[Doc]): Option[Doc]
def getAll(ids: Seq[Id[Doc]]): Iterator[Doc]
def insert(doc: Doc): Doc
def insert(docs: Seq[Doc]): Seq[Doc]
def list(): List[Doc]
def modify(id: Id[Doc], lock: Boolean, deleteOnNone: Boolean)(f: Option[Doc] => Option[Doc]): Option[Doc]
def truncate(): Int
def upsert(doc: Doc): Doc
def upsert(docs: Seq[Doc]): Seq[Doc]