Class

io.scalajs.npm.mongodb.gridfs

GridFSBucket

Related Doc: package gridfs

Permalink

class GridFSBucket extends Object

GridFS Bucket

Annotations
@RawJSType() @native() @JSImport( "mongodb" , "GridFSBucket" )
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GridFSBucket
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GridFSBucket(db: Db, options: GridFSOptions)

    Permalink
  2. new GridFSBucket(db: Db)

    Permalink
  3. new GridFSBucket()

    Permalink

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. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def delete(id: Any): Unit

    Permalink

    Deletes a file with the given id

    Deletes a file with the given id

    id

    the id of the file doc

    Example:
    1. delete(id, callback)

  7. def delete(id: Any, callback: Function): Unit

    Permalink

    Deletes a file with the given id

    Deletes a file with the given id

    id

    the id of the file doc

    Example:
    1. delete(id, callback)

  8. def drop(): Unit

    Permalink

    Removes this bucket's files collection, followed by its chunks collection.

    Removes this bucket's files collection, followed by its chunks collection.

    Example:
    1. drop(callback)

  9. def drop(callback: Function): Unit

    Permalink

    Removes this bucket's files collection, followed by its chunks collection.

    Removes this bucket's files collection, followed by its chunks collection.

    Example:
    1. drop(callback)

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def find(filter: Any, options: GridFSBucketFindOptions = null): Cursor

    Permalink

    Convenience wrapper around find on the files collection

    Convenience wrapper around find on the files collection

    Example:
    1. find(filter, options)

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

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

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

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

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

    Permalink
    Definition Classes
    Object
  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 openDownloadStream(id: Any, options: DownloadStreamOptions = null): GridFSBucketReadStream

    Permalink

    Returns a readable stream (GridFSBucketReadStream) for streaming file data from GridFS.

    Returns a readable stream (GridFSBucketReadStream) for streaming file data from GridFS.

    id

    the id of the file document

    options

    the download options

    Example:
    1. openDownloadStream(id, options)

  23. def openDownloadStreamByName(file: String, options: DownloadStreamByNameOptions = null): GridFSBucketReadStream

    Permalink

    Returns a readable stream (GridFSBucketReadStream) for streaming the file with the given name from GridFS.

    Returns a readable stream (GridFSBucketReadStream) for streaming the file with the given name from GridFS. If there are multiple files with the same name, this will stream the most recent file with the given name (as determined by the uploadDate field). You can set the revision option to change this behavior.

    file

    the name of the file to download

    options

    the download options

    Example:
    1. bucket.openDownloadStreamByName('meistersinger.mp3')

  24. def openUploadStream(file: String, options: UploadStreamOptions = null): GridFSBucketWriteStream

    Permalink

    Returns a writable stream (GridFSBucketWriteStream) for writing buffers to GridFS.

    Returns a writable stream (GridFSBucketWriteStream) for writing buffers to GridFS. The stream's 'id' property contains the resulting file's id.

    file

    the name of the file to download

    options

    the upload options

    Example:
    1. bucket.openUploadStream('./meistersinger.mp3')

  25. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

    Permalink
    Definition Classes
    Object
  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( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped