Home Manual Reference Source Test
import DBBrowser from 'atvise-scm/src/lib/db/Browser.js'
public class | source

DBBrowser

Extends:

events~Emitter → DBBrowser

Browses the atvise-server database based on one or more root nodes.

Constructor Summary

Public Constructor
public

constructor(options: Object)

Creates a new Browser with some options.

Member Summary

Public Members
public

The node adresses already browsed.

public
public

If the browser should also browse subnodes.

public

worker: DBWorker

The DBWorker used

Method Summary

Public Methods
public

browse(nodes: NodeId[] | String[])

Starts the browser based on some root nodes.

Public Constructors

public constructor(options: Object) source

Creates a new Browser with some options.

Params:

NameTypeAttributeDescription
options Object

The options to apply.

options.recursive Boolean
  • optional
  • default: true

If the browser should also browse subnodes.

Public Members

public browsed: Map<String, Boolean> source

The node adresses already browsed.

public discovered: number source

public recursive: Boolean source

If the browser should also browse subnodes.

public worker: DBWorker source

The DBWorker used

Public Methods

public browse(nodes: NodeId[] | String[]) source

Starts the browser based on some root nodes.

Params:

NameTypeAttributeDescription
nodes NodeId[] | String[]

The root nodes to browse.