Dynamic module gridfs-stream

Index

Functions

Functions

g(db: any, mongo: any): Grid

Parameters

  • db: any
  • mongo: any

Returns

Grid

Grid: Grid

public files: Collection

public collection(name?: string): Collection

Parameters

  • name?: string optional

Returns

Collection

public createReadStream(options?: Options): ReadStream

Parameters

Returns

ReadStream

public createReadStream(options?: string): ReadStream

Parameters

  • options?: string optional

Returns

ReadStream

public createWriteStream(options?: Options): WriteStream

Parameters

Returns

WriteStream

public createWriteStream(options?: string): WriteStream

Parameters

  • options?: string optional

Returns

WriteStream

public exist(options: Options, callback: (err: Error, found: boolean) => void)

Parameters

  • options: Options
  • callback: (err: Error, found: boolean) => void

public remove(options: Options, callback: (err: Error) => void)

Parameters

  • options: Options
  • callback: (err: Error) => void