c

io.scalajs.npm.mongodb.gridfs

GridStoreExtensions

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)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def chunkCollectionFuture(): Promise[Collection]

    Retrieve this file’s chunks collection.

    Retrieve this file’s chunks collection.

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

    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(): Promise[Any]

    Retrieves the file collection associated with this object.

    Retrieves the file collection associated with this object.

    Annotations
    @inline()
  8. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  9. def getcFuture(): Promise[String]

    Retrieves a single character from this file.

    Retrieves a single character from this file.

    Annotations
    @inline()
  10. val gridStore: GridStore
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def openFuture(): Promise[Db]

    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): Promise[GridStore]

    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](): Promise[Array[T]]

    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): Promise[Array[T]]

    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): Promise[Array[T]]

    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: Promise[Array[String]]

    Reads the data of this file.

    Reads the data of this file.

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

    Reads the data of this file.

    Reads the data of this file.

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

    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(): Promise[GridStore]

    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): Promise[GridStore]

    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): Promise[GridStore]

    Moves the read/write head to a new location.

    Moves the read/write head to a new location.

    Annotations
    @inline()
  23. def toString(): String
    Definition Classes
    Any
  24. def unlinkFuture(): Promise[Boolean]

    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): Promise[GridStore]

    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): Promise[GridStore]

    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): Promise[GridStore]

    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): Promise[GridStore]

    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): Promise[GridStore]

    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