aRTconn-openDb {aRT}R Documentation

Open an existent database

Description

Open a database connection from a virtual connection.

Usage

## S4 method for signature 'aRTconn':
openDb(con, dbname, update, views)

Arguments

con Object of class aRTconn.
dbname Database name.
update When the database version is older than the actual TerraLib version, set it TRUE to update to the newest version. You can connect to a database older than the actual version without updating it, but you have to take into account that unexpected errors may occour.
views A string with a username. If used, aRT will load the views from that user instead of the views of the owner of the connection. Note that the permissions in the database are controlled by the user/password of the aRTconn, that still being used for the connection. This user is just for TerraLib purposes.

Author(s)

Pedro Ribeiro de Andrade

See Also

createDb to create new databases. aRTconn-class to show the description of this class.

Examples

## Not run: 
con=openConn()
db=openDb(con, "database")
## End(Not run)

[Package aRT version 1.6-4 Index]