DBIResourceConnector | R Documentation |
DBI resource connector
DBI resource connector
A R6 object of class DBIResourceConnector
Makes a DBI connection from a resource description, used in SQLResourceClient that is based on DBI.
new()
Creates a new DBIResourceConnector instance
DBIResourceConnector$new()
A DBIResourceConnector object.
isFor()
Check that the provided parameter is of class "resource".
DBIResourceConnector$isFor(resource)
resource
The resource object to validate.
A logical.
createDBIConnection()
Stub function which subclasses will implement to create a DBI connection object from a resource.
DBIResourceConnector$createDBIConnection(resource)
resource
A valid resource object.
getTableName()
Get the SQL table name from the resource URL.
DBIResourceConnector$getTableName(resource)
resource
A valid resource object.
The SQL table name.
readDBTable()
Read a table as a vanilla tibble using DBI connection object.
DBIResourceConnector$readDBTable(conn, resource)
conn
A DBI connection object.
resource
A valid resource object.
A vanilla tibble.
readDBTibble()
Read a table as a SQL tibble using DBI connection object.
DBIResourceConnector$readDBTibble(conn, resource)
conn
A DBI connection object.
resource
A valid resource object.
A SQL tibble.
closeDBIConnection()
Disconnect the DBI connection.
DBIResourceConnector$closeDBIConnection(conn)
conn
A DBI connection object.
clone()
The objects of this class are cloneable with this method.
DBIResourceConnector$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.