class DbOptions extends Object
Database Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- Alphabetic
- By Inheritance
- DbOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
DbOptions(authSource: UndefOr[String] = js.undefined, w: UndefOr[|[Int, String]] = js.undefined, wtimeout: UndefOr[Int] = js.undefined, j: UndefOr[Boolean] = js.undefined, forceServerObjectId: UndefOr[Boolean] = js.undefined, serializeFunctions: UndefOr[Boolean] = js.undefined, ignoreUndefined: UndefOr[Boolean] = js.undefined, raw: UndefOr[Boolean] = js.undefined, promoteLongs: UndefOr[Boolean] = js.undefined, promoteBuffers: UndefOr[Boolean] = js.undefined, promoteValues: UndefOr[Boolean] = js.undefined, bufferMaxEntries: UndefOr[Int] = js.undefined, readPreference: UndefOr[ReadPreference] = js.undefined, pkFactory: UndefOr[Any] = js.undefined, promiseLibrary: UndefOr[Any] = js.undefined, readConcern: UndefOr[Any] = js.undefined, level: UndefOr[Any] = js.undefined)
- authSource
string null optional If the database authentication is dependent on another databaseName.
- w
number | string null optional The write concern.
- wtimeout
number null optional The write concern timeout.
- j
boolean false optional Specify a journal write concern.
- forceServerObjectId
boolean false optional Force server to assign _id values instead of driver.
- serializeFunctions
boolean false optional Serialize functions on any object.
- ignoreUndefined
Boolean false optional Specify if the BSON serializer should ignore undefined fields.
- raw
boolean false optional Return document results as raw BSON buffers.
- promoteLongs
boolean true optional Promotes Long values to number if they fit inside the 53 bits resolution.
- promoteBuffers
boolean false optional Promotes Binary BSON values to native Node Buffers.
- promoteValues
boolean true optional Promotes BSON values to native types where possible, set to false to only receive wrapper types.
- bufferMaxEntries
number -1 optional Sets a cap on how many operations the driver will buffer up before giving up on getting a working connection, default is -1 which is unlimited.
- readPreference
ReadPreference | string null optional The preferred read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).
- pkFactory
object null optional A primary key factory object for generation of custom _id keys.
- promiseLibrary
object null optional A Promise library class the application wishes to use such as Bluebird, must be ES6 compatible
- readConcern
object null optional Specify a read concern for the collection. (only MongoDB 3.2 or higher supported) Name Type Default Description
- level
object 'local' optional Specify a read concern level for the collection operations, one of [local|majority]. (only MongoDB 3.2 or higher supported)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val authSource: UndefOr[String]
- val bufferMaxEntries: UndefOr[Int]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val forceServerObjectId: UndefOr[Boolean]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- val ignoreUndefined: UndefOr[Boolean]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- val j: UndefOr[Boolean]
- val level: UndefOr[Any]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val pkFactory: UndefOr[Any]
- val promiseLibrary: UndefOr[Any]
- val promoteBuffers: UndefOr[Boolean]
- val promoteLongs: UndefOr[Boolean]
- val promoteValues: UndefOr[Boolean]
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- val raw: UndefOr[Boolean]
- val readConcern: UndefOr[Any]
- val readPreference: UndefOr[ReadPreference]
- val serializeFunctions: UndefOr[Boolean]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
- val w: UndefOr[|[Int, String]]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val wtimeout: UndefOr[Int]