Class Cursor

Index

Methods

Methods

public close(): any

Returns

any

public each(cb: (err: Error, row: any) => void, done?: () => void): any

Parameters

  • cb: (err: Error, row: any) => void
  • done?: () => void optional

Returns

any

public each(cb: (err: Error, row: any) => boolean, done?: () => void): any

Parameters

  • cb: (err: Error, row: any) => boolean
  • done?: () => void optional

Returns

any

public hasNext(): boolean

Returns

boolean

public next(cb: (err: Error, row: any) => void): any

Parameters

  • cb: (err: Error, row: any) => void

Returns

any

public toArray(cb: (err: Error, rows: any[]) => void): any

Parameters

  • cb: (err: Error, rows: any[]) => void

Returns

any