Class

io.scalajs.npm.mongodb.gridfs

GridStoreOptions

Related Doc: package gridfs

Permalink

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)

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. var chunk_size: UndefOr[Int]

    Permalink

    size for the chunk.

    size for the chunk. Defaults to Chunk.DEFAULT_CHUNK_SIZE.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. var content_type: UndefOr[String]

    Permalink

    mime type of the file.

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

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. var fsync: UndefOr[Boolean]

    Permalink

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

  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  17. var j: UndefOr[Boolean]

    Permalink

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

  18. var metadata: UndefOr[Object]

    Permalink

    arbitrary data the user wants to store.

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  23. var readPreference: UndefOr[String]

    Permalink

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

  24. var root: UndefOr[String]

    Permalink

    root collection to use.

    root collection to use. Defaults to GridStore.DEFAULT_ROOT_COLLECTION.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  29. var w: UndefOr[Any]

    Permalink

    {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

  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. var wtimeout: UndefOr[Int]

    Permalink

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

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped