c

io.scalajs.npm.mongodb.gridfs

GridFSBucket

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)
  2. new GridFSBucket(db: Db)
  3. new GridFSBucket()

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. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def delete(id: Any): Unit

    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

    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

    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

    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
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def find(filter: Any, options: GridFSBucketFindOptions = null): Cursor

    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[_]
    Definition Classes
    AnyRef → Any
  15. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    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 openDownloadStream(id: Any, options: DownloadStreamOptions = null): GridFSBucketReadStream

    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

    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

    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
    Definition Classes
    Object
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toLocaleString(): String
    Definition Classes
    Object
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def valueOf(): Any
    Definition Classes
    Object
  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( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped