Copyright © EXASOL AG, Nuremberg (Germany). All rights reserved.
2004 - 2016
You need to have Rtools
installed on Windows for R to be able to compile the package (for Linux see below).
Plus, the R package devtools must be available in your workspace
as it contains the install_github()
method. The EXASOL package itself
depends on the R package RODBC, which should be available on install
from Github.
To install the EXASOL package:
require(devtools)
install_github("EXASOL/r-exasol")
The low-level methods as regards exa.readData, exa.writeData and exa.createScript may work as expected, so should the DBI connection methods (dbConnect etc.; all tests passed). DBI querying methods also get close to being error-free: encoding and quoting should work properly, there could be errors about data type conversion. Writing tests have not yet been implemented (only quick-tests), but it hopefully happens in the near future.
Code coverage of tests:
The EXASOL R Package offers interface functionality such as connecting to, querying and writing into an EXASOL Database (version 5 onwards). It is optimised for massively parallel reading & writing from and to a multinode cluster. Implemented are DBI compliant methods for database access, querying and modiifcation. The package integrates with EXASOL's InDB R UDF capabilities, which allows to deploy and execute R code dynamically from an R application running on a client.
EXASOL is an InMemory RDBMS that runs in a MPP cluster (shared-nothing) environment. Leading the TPC-H benckmark, it is considered the fastest analytical data warehouse available. The community edition can be downloaded for free from the EXASOL Community Portal.
-
Install developer extensions for R to be able to build from sources
For Windows: Install
Rtools
For Linux: Install theR-devel
(RPM) orr-base-dev
(Debian) package.The packages might change over time, so generally you can go to the official R-project website download section for your OS to find the package that are needed to build packages.
-
Make sure you have ODBC and EXASOL ODBC installed and configured on your system. We recommend to create a DSN pointing to your database instance. Read the README of EXASOL's ODBC driver package for details.
On Linux, you also need to install the development files for ODBC. Therefore please install
unixodbc-devel
(RPM) orunixodbc-dev
(Debian) package.
To use the package import it as follows:
library(exasol)
The package comes with documentation accessible from R via the command ?exasol
.
EXADriver-class : An interface driver object to the EXASOL Database.
dbDriver : Load database drivers.
dbUnloadDriver : Unload a driver.
dbConnect : Creates a connection to an EXASOL Database.
dbListConnections : List currently open connections.
EXAConnection-class : An object holding a connection to an EXASOL Database.
dbDisconnect : Disconnects the connection.
dbSendQuery : Sends an SQL statment to an EXASOL DB, prepares for result fetching.
dbGetQuery : Executes the query, fetches and returns the entire result set.
dbGetException : TODO
dbListResults : TODO
dbListFields : TODO
dbListTables : TODO
dbReadTable : Reads a DB table.
dbWriteTable : Writes a data.frame into a table. If the table does not exist, it is created.
dbExistsTable : Checks if a table exists in an EXASOL DB.
dbRemoveTable : Removes a table.
dbBegin : Starts a DB transaction.
dbEnd : Ends a DB transaction.
dbCommit : Sends a commit.
dbRollback : Rolls the current DB transaction back.
EXAResult-class : An object that is associated with a result set in an EXASOL Database.
dbFetch : Fetches a subset of an result set.
dbClearResult : Frees all resources associated with an EXAResult.
dbColumnInfo : TODO
dbGetStatement : TODO
dbHasCompleted : TODO
dbGetRowsAffected : TODO
dbGetRowCount : TODO
exa.readData : Execute a SQL query on an EXASolution database and read results fast.
exa.writeData : Write a data.frame into an EXASOL table fast.
exa.createScript : Deploys an R function as an UDF in the EXASolution database.
EXAupper : Changes an identifier into uppercase, except for it is quoted.
dbCurrentSchema : Fetches and outputs the current schema from an EXASOL DB.