ExtConnClass {biodb} | R Documentation

## Extension connector clas

### Description

A class for generating a new connector class.

### Details

This class generates a new connector class from given parameters. The new class can inherit directly from `BiodbConn` or `BiodbCompounddbConn` or `BiodbMassdbConn`. It can also be editable and/or writable.

### Super classes

`biodb::ExtGenerator` -> `biodb::ExtFileGenerator` -> `ExtConnClass`

### Methods

#### Public methods

- `ExtConnClass$new()`

- `ExtConnClass$clone()`

Inherited methods

- `biodb::ExtGenerator$generate()`

- `biodb::ExtGenerator$upgrade()`

#### Method `new()`

Constructor

##### Usage

    ExtConnClass$new(...)

##### Arguments

`...`

  See the constructor of ExtFileGenerator for the parameters.

##### Returns

A new instance.

#### Method `clone()`

The objects of this class are cloneable with this method.

##### Usage

    ExtConnClass$clone(deep = FALSE)

##### Arguments

`deep`

  Whether to make a deep clone.

### Examples

    # Generate a new connector class inside R folder:
    pkgFolder <- file.path(tempfile(), 'biodbFoo')
    dir.create(pkgFolder, recursive=TRUE)
    biodb::ExtConnClass$new(path=pkgFolder, dbName='foo.db',
                            dbTitle='Foo database',
                            connType='mass', remote=TRUE)$generate()

[Package biodb version 1.0.4 Index]