Class

io.scalajs.npm.mongodb.gridfs

GridStoreExtensions

Related Doc: package gridfs

Permalink

implicit final class GridStoreExtensions extends AnyVal

Grid Store Extensions

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GridStoreExtensions
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GridStoreExtensions(gridStore: GridStore)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

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

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

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

    Permalink
    Definition Classes
    Any
  5. def chunkCollectionFuture(): Future[Collection]

    Permalink

    Retrieve this file’s chunks collection.

    Retrieve this file’s chunks collection.

    Annotations
    @inline()
  6. def closeFuture(): Future[Any]

    Permalink

    Saves this file to the database.

    Saves this file to the database. This will overwrite the old entry if it already exists. This will work properly only if mode was initialized to “w” or “w+”.

    Annotations
    @inline()
  7. def collectionFuture(): Future[Any]

    Permalink

    Retrieves the file collection associated with this object.

    Retrieves the file collection associated with this object.

    Annotations
    @inline()
  8. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  9. def getcFuture(): Future[String]

    Permalink

    Retrieves a single character from this file.

    Retrieves a single character from this file.

    Annotations
    @inline()
  10. val gridStore: GridStore

    Permalink
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. def openFuture(): Future[Db]

    Permalink

    Opens the file from the database and initialize this object.

    Opens the file from the database and initialize this object. Also creates a new one if file does not exist.

    Annotations
    @inline()
  13. def putsFuture(string: String): Future[GridStore]

    Permalink

    Writes a string to the file with a newline character appended at the end if the given string does not have one.

    Writes a string to the file with a newline character appended at the end if the given string does not have one.

    Annotations
    @inline()
  14. def readFuture[T <: Any](): Future[Array[T]]

    Permalink

    Retrieves the contents of this file and advances the read/write head.

    Retrieves the contents of this file and advances the read/write head. Works with Buffers only.

    Annotations
    @inline()
  15. def readFuture[T <: Any](buffer: Buffer): Future[Array[T]]

    Permalink

    Retrieves the contents of this file and advances the read/write head.

    Retrieves the contents of this file and advances the read/write head. Works with Buffers only.

    Annotations
    @inline()
  16. def readFuture[T <: Any](length: Int, buffer: Buffer): Future[Array[T]]

    Permalink

    Retrieves the contents of this file and advances the read/write head.

    Retrieves the contents of this file and advances the read/write head. Works with Buffers only.

    Annotations
    @inline()
  17. def readlinesFuture: Future[Array[String]]

    Permalink

    Reads the data of this file.

    Reads the data of this file.

    Annotations
    @inline()
  18. def readlinesFuture(separator: String): Future[Array[String]]

    Permalink

    Reads the data of this file.

    Reads the data of this file.

    Annotations
    @inline()
  19. def rewindFuture(): Future[Any]

    Permalink

    Deletes all the chunks of this file in the database if mode was set to “w” or “w+” and resets the read/write head to the initial position.

    Deletes all the chunks of this file in the database if mode was set to “w” or “w+” and resets the read/write head to the initial position.

    Annotations
    @inline()
  20. def seekFuture(): Future[GridStore]

    Permalink

    Moves the read/write head to a new location.

    Moves the read/write head to a new location.

    Annotations
    @inline()
  21. def seekFuture(seekLocation: Int): Future[GridStore]

    Permalink

    Moves the read/write head to a new location.

    Moves the read/write head to a new location.

    Annotations
    @inline()
  22. def seekFuture(position: Int, seekLocation: Int): Future[GridStore]

    Permalink

    Moves the read/write head to a new location.

    Moves the read/write head to a new location.

    Annotations
    @inline()
  23. def toString(): String

    Permalink
    Definition Classes
    Any
  24. def unlinkFuture(): Future[Boolean]

    Permalink

    Deletes all the chunks of this file in the database.

    Deletes all the chunks of this file in the database.

    Annotations
    @inline()
  25. def writeFileFuture(file: String): Future[GridStore]

    Permalink

    Stores a file from the file system to the GridFS database.

    Stores a file from the file system to the GridFS database.

    Annotations
    @inline()
  26. def writeFuture(data: String): Future[GridStore]

    Permalink

    Writes some data.

    Writes some data. This method will work properly only if initialized with mode “w” or “w+”.

    Annotations
    @inline()
  27. def writeFuture(data: Buffer): Future[GridStore]

    Permalink

    Writes some data.

    Writes some data. This method will work properly only if initialized with mode “w” or “w+”.

    Annotations
    @inline()
  28. def writeFuture(data: String, close: Boolean): Future[GridStore]

    Permalink

    Writes some data.

    Writes some data. This method will work properly only if initialized with mode “w” or “w+”.

    Annotations
    @inline()
  29. def writeFuture(data: Buffer, close: Boolean): Future[GridStore]

    Permalink

    Writes some data.

    Writes some data. This method will work properly only if initialized with mode “w” or “w+”.

    Annotations
    @inline()

Inherited from AnyVal

Inherited from Any

Ungrouped