aRTconn-createDb {aRT}R Documentation

Create a new database

Description

Create a new database from a virtual connection and returns a connection to it.

Usage

## S4 method for signature 'aRTconn':
createDb(con, dbname, delete)

Arguments

con Object of class aRTconn.
dbname Database name.
delete Delete the database if it already exists? Default is FALSE.

Author(s)

Pedro Ribeiro de Andrade

See Also

openDb opens (without create) databases. aRTconn shows the description of this class.

Examples

## Not run: 
con=openConn()
database = createDb(con, "database")
dbx = createDb(con, "database") # error, database exists
db = createDb(con, "database", delete=TRUE) # OK
## End(Not run)

[Package aRT version 1.6-0 Index]