## OraDriver-related
oraInitDriver(max.con=10, fetch.default.rec = 500, force.reload=FALSE)
oraDriverInfo(obj, what)
oraDescribeDriver(obj, verbose = FALSE, ...)
oraCloseDriver(drv, ...) ## OraConnection-related
oraNewConnection(drv, username="", password="",
dbname = if(usingR()) Sys.getenv("ORACLE_SID") else getenv("ORACLE_SID"),
max.results = 1)
oraCloneConnection(drv, ...)
oraConnectionInfo(obj, what)
oraDescribeConnection(obj, verbose = FALSE, ...)
oraCloseConnection(con, ..., force = FALSE)
## OraResult-related
oraExecStatement(con, statement)
oraFetch(res, n=0, ...)
oraQuickSQL(con, statement, ...)
oraResultInfo(obj, what)
oraDescribeResult(obj, verbose = FALSE, ...)
oraCloseResult(res, ...)
## data mappings and convenience functions
oraDataType(obj, ...)
oraReadTable(con, name, row.names = "row.names", check.names = TRUE, ...)
oraWriteTable(con, name, value, field.types, row.names = TRUE,
overwrite=FALSE, append=FALSE, ...)
oraTableFields(con, name, ...)
oraFetch
.
The default is 500.fetch.default.rec
).
Note that the driver is a singleton (subsequent inits just returned the
previously initialized OraConnection
,
OraResult
).FALSE
.OraDriver
object as produced by oraInit
.OraConnection
object as produced by oraNewConnection
and oraCloneConnection
.OraResult
object as produced by by oraExecStatement
.FALSE
.fetch.default.rec
was specified
during driver initialization oraInit
value
to SQL data types. The default is
sapply(value,SQLDataType)
, see OraSQLType
.value
data.frame
row names or not. The default is TRUE
.TRUE
.name
with
the contents of the data.frame value
.
The defauls is FALSE
.value
to the existing
table name
.oraInitDriver
returns an OraDriver
object. oraDriverInfo
returns a list of name-value metadata pairs.
oraDescribeDriver
returns NULL
(displays the object's
metadata).
oraCloseDriver
returns a logical indicating whether the
operation succeeded or not.
oraNewConnection
returns an OraConnection
object.
oraCloneConnection
returns an OraConnection
object.
oraConnectionInfo
returns a list of name-value metadata pairs.
oraDescribeConnection
returns NULL
(displays the
object's metadata).
oraCloseConnection
returns a logical indicating whether the
operation succeeded or not.
oraExecStatement
returns an OraResult
object.
oraFetch
returns a data.frame.
oraQuickSQL
returns either a data.frame if the statement
is
a select
-like or NULL otherwise.
oraDescribeResult
returns NULL
(displays the object's
metadata).
oraCloseResult
returns a logical indicating whether the
operation succeeded or not.
oraReadTable
returns a data.frame with the contents of the
DBMS table.
oraWriteTable
returns a logical indicating whether the
operation succeeded or not.
oraTableFields
returns a character vector with the
table name
field names.
oraDataType
retuns a character string with the closest
oraResultInfo
returns a list of name-value metadata pairs.
.OraPkgName
(currently "ROracle"
),
.OraPkgVersion
(the R package version),
.OraPkgRCS
(the RCS revision),
.Oracle.NA.string
(character that Oracle uses to
denote NULL
on input),
.OraSQLKeywords
(a lot!)
.conflicts.OK
.