SQL database resource client
SQL database resource client
Details
Resource client that connects to a SQL database supported by DBI.
Methods
Inherited methods
Method new()
Creates a SQLResourceClient from a resource.
Arguments
resource
The resource object.
dbi.connector
An optional DBIResourceConnector object. If not provided, it will be looked up in the DBIResourceConnector registry.
Returns
The SQLResourceClient object.
Get or create the DBI connection object that will access the resource.
Usage
SQLResourceClient$getConnection()
Returns
The DBI connection object.
Method asDataFrame()
Coerce the SQL table to a data.frame.
Usage
SQLResourceClient$asDataFrame(...)
Arguments
...
Additional parameters (not used).
Returns
A data.frame (more specifically a tibble).
Method asTbl()
Get the SQL table as a dplyr's tbl.
Usage
SQLResourceClient$asTbl()
Returns
A dplyr's tbl object.
Silently close the DBI connection.
Usage
SQLResourceClient$close()
Method clone()
The objects of this class are cloneable with this method.
Usage
SQLResourceClient$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.