c

io.scalajs.npm.mongodb.gridfs

GridStoreOptions

class GridStoreOptions extends Object

Grid Store Options

Annotations
@RawJSType() @ScalaJSDefined()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GridStoreOptions
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GridStoreOptions(root: UndefOr[String] = js.undefined, content_type: UndefOr[String] = js.undefined, chunk_size: UndefOr[Int] = js.undefined, metadata: UndefOr[Object] = js.undefined, readPreference: UndefOr[String] = js.undefined, w: UndefOr[Any] = js.undefined, wtimeout: UndefOr[Int] = js.undefined, fsync: UndefOr[Boolean] = js.undefined, j: UndefOr[Boolean] = js.undefined)

    root

    root collection to use. Defaults to GridStore.DEFAULT_ROOT_COLLECTION.

    content_type

    mime type of the file. Defaults to GridStore.DEFAULT_CONTENT_TYPE.

    chunk_size

    size for the chunk. Defaults to Chunk.DEFAULT_CHUNK_SIZE.

    metadata

    arbitrary data the user wants to store.

    readPreference

    the prefered read preference (ReadPreference.PRIMARY, ReadPreference.PRIMARY_PREFERRED, ReadPreference.SECONDARY, ReadPreference.SECONDARY_PREFERRED, ReadPreference.NEAREST).

    w

    {Int/String, > -1 || ‘majority’ || tag name} the write concern for the operation where < 1 is no acknowlegement of write and w >= 1, w = ‘majority’ or tag acknowledges the write

    wtimeout

    set the timeout for waiting for write concern to finish (combines with w option)

    fsync

    write waits for fsync before returning, from MongoDB 2.6 on, fsync cannot be combined with journal (default: false)

    j

    write waits for journal sync before returning (default: false)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. var chunk_size: UndefOr[Int]
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. var content_type: UndefOr[String]
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. var fsync: UndefOr[Boolean]
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  17. var j: UndefOr[Boolean]
  18. var metadata: UndefOr[Object]
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  22. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  23. var readPreference: UndefOr[String]
  24. var root: UndefOr[String]
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toLocaleString(): String
    Definition Classes
    Object
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. def valueOf(): Any
    Definition Classes
    Object
  29. var w: UndefOr[Any]
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. var wtimeout: UndefOr[Int]

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped