| 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)
resourceThe 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)
resourceA valid resource object.
getTableName()Get the SQL table name from the resource URL.
DBIResourceConnector$getTableName(resource)
resourceA valid resource object.
The SQL table name.
readDBTable()Read a table as a vanilla tibble using DBI connection object.
DBIResourceConnector$readDBTable(conn, resource)
connA DBI connection object.
resourceA valid resource object.
A vanilla tibble.
readDBTibble()Read a table as a SQL tibble using DBI connection object.
DBIResourceConnector$readDBTibble(conn, resource)
connA DBI connection object.
resourceA valid resource object.
A SQL tibble.
closeDBIConnection()Disconnect the DBI connection.
DBIResourceConnector$closeDBIConnection(conn)
connA DBI connection object.
clone()The objects of this class are cloneable with this method.
DBIResourceConnector$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.