aRTconn {aRT} | R Documentation

## Class aRTconn

### Description

Class that stores a virtual DBMA connection and manipulates databases. The connection is virtual because each time a function is called, it connects, does something and then disconnects.

### Objects from the Class

Objects can be created by calls of the form `openConn(user, password, port, host)`.

### Arguments

user
  User of the DBMA. The default is the user logged in the system.
password
  The password, default is “”.
port
  Port of the connection, default value is 3306.
host
  Host to connect, default is “localhost”.

### Extends

Class `aRTcomponent`, directly.

### Methods

addUser:
  Grants ALL permissions on the DBMS to a user.
createDb:
  Creates a new database and returns a connection to it.
deleteDb:
  Removes a database from the DBMS.
openDb:
  Opens an existent database from the DBMS.
showDbs:
  Shows the avilable databases.

### Author(s)

Marcos Aurelio Carrero, Pedro Ribeiro de Andrade Neto

### See Also

See `aRT` the package organization.

[Package aRT version 0.4-0 Index]