object Mongoose extends Object with Connectable

Mongoose Singleton

Annotations
@native() @JSImport( "mongoose" , JSImport.Namespace )
Linear Supertypes
Connectable, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Mongoose
  2. Connectable
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. var Promise: Any

    The promises library in use by Mongoose

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def connect(uri: String, callback: Function2[MongooseError, Connection, Any]): Unit

    Opens the default mongoose connection.

    Opens the default mongoose connection.

    uri

    the connection URI

    callback

    the optional callback

    Definition Classes
    Connectable
  8. def connect(uri: String, collection: String, callback: Function2[MongooseError, Connection, Any]): Unit

    Opens the default mongoose connection.

    Opens the default mongoose connection.

    uri

    the connection URI

    collection

    the collection

    callback

    the optional callback

    Definition Classes
    Connectable
  9. def connect(uri: String, options: |[ConnectionOptions, RawOptions], callback: Function2[MongooseError, Connection, Any]): Unit

    Opens the default mongoose connection.

    Opens the default mongoose connection.

    uri

    the connection URI

    options

    the optional options

    callback

    the optional callback

    Definition Classes
    Connectable
  10. def connect(uri: String, collection: String): Connection

    Opens the default mongoose connection.

    Opens the default mongoose connection.

    uri

    the connection URI

    collection

    the collection

    returns

    the mongoose connection

    Definition Classes
    Connectable
  11. def connect(uri: String, options: |[ConnectionOptions, RawOptions] = js.native): Connection

    Opens the default mongoose connection.

    Opens the default mongoose connection.

    uri

    the connection URI

    options

    the optional options

    returns

    the mongoose connection

    Definition Classes
    Connectable
  12. def connection: Connection

    This is the connection used by default for every model created using mongoose.model.

  13. def createConnection(url: String, options: |[ConnectionOptions, RawOptions] = js.native): Connection

  14. def disconnect(callback: Function1[Error, Any]): Unit

    Disconnects all connections.

    Disconnects all connections.

    callback

    the call back

  15. def disconnect(): MongooseThenable[Unit]

    Disconnects all connections.

  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def get[T](key: String): UndefOr[T]

    Gets mongoose options

    Gets mongoose options

    key

    the given key

    returns

    the associated value

  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  21. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  25. def model[A](modelName: String, schema: Schema[A] = js.native, collectionName: String = js.native): MongooseModel[A]

    modelName

    the name of the model

    schema

    the Schema

    collectionName

    the collection name

    returns

    the model

  26. def modelNames(): Array[String]

    Returns an array of model names created on this instance of Mongoose.

    Returns an array of model names created on this instance of Mongoose.

    returns

    an array of model names

  27. def mongo: MongoDB

    The MongoDB instance

  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  31. def open(host: String, database: String, port: Int, options: RawOptions = js.native): Unit

  32. def plugin(callback: Function, options: RawOptions = js.native): Unit

    Declares a global plugin executed on all Schemas.

    Declares a global plugin executed on all Schemas.

    callback

    the plugin callback

    options

    the optional options

  33. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  34. def set(key: String, value: Any): Unit

    Sets mongoose options

    Sets mongoose options

    key

    the options key

    value

    the the value to set or function

  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toLocaleString(): String
    Definition Classes
    Object
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. def valueOf(): Any
    Definition Classes
    Object
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. object Schema extends Object
    Annotations
    @native()

Inherited from Connectable

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped