connect: Connect

Description Arguments Examples

Description

Connect to SiriDB
A callback function can be used to check if the connect is successful.

Arguments

callback

A callback function can be used to check if the connect is successful

Examples

1
2
3
4
5
6
7
8
9
  s <- SiriDB(user="iris", password="siri", dbname="dbtest", server="localhost", port=9000L)
  s$connect(function (err) {
    # success: err is NULL
    # error:   err is a string with an error message
    if (is.null(err)) {
      # close the connection
      s$close()
    }
  })

SiriDB/siridb-connector-r documentation built on May 5, 2019, 9:44 p.m.