PostgresResourceConnector: Postgres DBI resource connector

PostgresResourceConnectorR Documentation

Postgres DBI resource connector

Description

Postgres DBI resource connector

Postgres DBI resource connector

Format

A R6 object of class PostgresResourceConnector

Details

Makes a Postgres DBI connection from a resource description.

Super class

resourcer::DBIResourceConnector -> PostgresResourceConnector

Methods

Public methods

Inherited methods

Method new()

Creates a new PostgresResourceConnector instance.

Usage
PostgresResourceConnector$new()
Returns

A PostgresResourceConnector object.


Method isFor()

Check that the provided resource has a URL that locates a Postgres object: the URL scheme must be "postgres" or "postgresql".

Usage
PostgresResourceConnector$isFor(resource)
Arguments
resource

The resource object to validate.

Returns

A logical.


Method createDBIConnection()

Creates a DBI connection object from a resource.

Usage
PostgresResourceConnector$createDBIConnection(resource)
Arguments
resource

A valid resource object.

Returns

A DBI connection object.


Method clone()

The objects of this class are cloneable with this method.

Usage
PostgresResourceConnector$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


resourcer documentation built on April 25, 2023, 5:10 p.m.