Interface Connection

Index

Methods

Methods

public addListener(event: string, cb: Function): any

Parameters

  • event: string
  • cb: Function

Returns

any

public close(): any

Returns

any

public on(event: string, cb: Function): any

Parameters

  • event: string
  • cb: Function

Returns

any

public reconnect(cb: (err: Error, conn: "rethinkdb".Connection) => void): any

Parameters

  • cb: (err: Error, conn: "rethinkdb".Connection) => void

Returns

any

public use(dbName: string): any

Parameters

  • dbName: string

Returns

any