MariaDBResourceConnector: MariaDB DBI resource connector

MariaDBResourceConnectorR Documentation

MariaDB DBI resource connector

Description

MariaDB DBI resource connector

MariaDB DBI resource connector

Format

A R6 object of class MariaDBResourceConnector

Details

Makes a MariaDB/MySQL DBI connection from a resource description.

Super class

resourcer::DBIResourceConnector -> MariaDBResourceConnector

Methods

Public methods

Inherited methods

Method new()

Creates a new MariaDBResourceConnector instance.

Usage
MariaDBResourceConnector$new()
Returns

A MariaDBResourceConnector object.


Method isFor()

Check that the provided resource has a URL that locates a MySQL or MariaDB object: the URL scheme must be "mysql" or "mariadb".

Usage
MariaDBResourceConnector$isFor(resource)
Arguments
resource

The resource object to validate.

Returns

A logical.


Method createDBIConnection()

Creates a DBI connection object from a resource.

Usage
MariaDBResourceConnector$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
MariaDBResourceConnector$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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