Base

dev.mongocamp.driver.mongodb.operation.Base
abstract class Base[A](implicit classTag: ClassTag[A]) extends LazyLogging, CirceSchema

Attributes

Graph
Supertypes
trait CirceSchema
trait LazyLogging
class Object
trait Matchable
class Any
Show all
Known subtypes
class Search[A]
class Crud[A]
trait CrudObserver[A]
class MongoDAO[A]
object Raw
class DocumentDao
object Chunks
object Files
Show all

Members list

Value members

Abstract methods

protected def coll: MongoCollection[Document]

Concrete methods

def count(filter: Bson, options: CountOptions): Observable[Long]
def createExpiringIndexForField(fieldName: String, duration: Duration, sortAscending: Boolean, name: Option[String]): SingleObservable[String]
def createHashedIndexForField(fieldName: String, options: IndexOptions): SingleObservable[String]
def createIndex(key: Bson, options: IndexOptions): SingleObservable[String]
def createIndexForField(fieldName: String, sortAscending: Boolean, options: IndexOptions): SingleObservable[String]
def createIndexForFieldWithName(fieldName: String, sortAscending: Boolean, name: String): SingleObservable[String]
def createTextIndexForField(fieldName: String, options: IndexOptions): SingleObservable[String]
def createUniqueIndexForField(fieldName: String, sortAscending: Boolean, name: Option[String]): SingleObservable[String]
def documentToObject[A](document: Document, decoder: Decoder[A]): A
def drop(): Observable[Unit]
def dropIndex(keys: Bson, options: DropIndexOptions): SingleObservable[Unit]
def dropIndexForName(name: String, options: DropIndexOptions): SingleObservable[Unit]
def hasIndexForField(fieldName: String): Boolean
def indexForName(name: String): Option[MongoIndex]
def indexList(): List[MongoIndex]
def listIndexes: ListIndexesObservable[Map[String, Any]]

Inherited methods

def decodeFromJson(json: Json): Any

Attributes

Inherited from:
CirceSchema
def encodeAnyToJson(a: Any, deepth: Int): Json

Attributes

Inherited from:
CirceSchema
def encodeMapStringAny(a: Map[String, Any]): Json

Attributes

Inherited from:
CirceSchema
def productElementNames(internalProduct: Product): Iterator[String]

Attributes

Inherited from:
CirceProductSchema

Inherited fields

lazy protected val logger: Logger

Attributes

Inherited from:
LazyLogging

Implicits

Inherited implicits

implicit val AnyFormat: Encoder[Any] & Decoder[Any]

Attributes

Inherited from:
CirceSchema
implicit val DateFormat: Encoder[Date] & Decoder[Date]

Attributes

Inherited from:
CirceSchema
implicit val DateTimeFormat: Encoder[DateTime] & Decoder[DateTime]

Attributes

Inherited from:
CirceSchema
implicit lazy val DocumentOneFormat: Decoder[Document]

Attributes

Inherited from:
CirceSchema
implicit lazy val DocumentTowFormat: Decoder[Document]

Attributes

Inherited from:
CirceSchema
implicit val MapStringAnyFormat: Encoder[Map[String, Any]] & Decoder[Map[String, Any]]

Attributes

Inherited from:
CirceSchema
implicit val ObjectIdFormat: Encoder[ObjectId] & Decoder[ObjectId]

Attributes

Inherited from:
CirceSchema