## 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(is.R()) 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(ps, data = NULL, ora.buf.size = -1)
oraFetch(res, n=0, ..., ora.buf.size)
oraQuickSQL(con, statement, ...)
oraExecDirect(con, statement, ora.buf.size = 500)
oraResultInfo(obj, what)
oraDescribeResult(obj, verbose = FALSE, ...)
oraCloseResult(res, ...)
## OraPreparedStatement-related
oraPrepareStatement(con, statement, bind)
oraExecStatement(ps, data, ora.buf.size)
oraDescribePreparedStatement(obj, verbose, ...)
oraPreparedStatementInfo(obj, what, ...)
oraBoundParamsInfo(obj)
## transactions
oraCommit(conn, ...)
oraRollback(conn, ...)
## data mappings and convenience functions
oraDataType(obj, ...)
oraReadTable(con, name, row.names = "row_names", check.names = TRUE, ...)
oraWriteTable(con, name, value, field.oraTypes, 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
.OraConnection
object as produced by oraNewConnection
and oraCloneConnection
.OraResult
, for instance as produced by oraExecDirect
.OraPreparedStatement
object as produce by
oraPrepareStatement
.data.frame
whose columns are to be bound to a prepared
statement.data.frame
columns.RS_ORA_MAX_BUFFER_SIZE
(initially set to 4096)
specifying how many rows per fetch should Oracle move at a time.
The ProC/C++ Oracle implementation limits the size of these buffers
to 65767/si
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.
oraPrepareStatement
returns a prepared statement.
oraExecStatement
executes (and optionally binds new data) a prepared
statement.
oraExecDirect
executes a simple (no binding) SQL statement.
oraPreparedStatementInfo
list of prepared statement metadata.
oraDescribePreparedStatement
a simple print out of the prepared
statement status
oraBoundParamsInfo
data frame with as many rows as bound parameters
with the columns number and class for the data.frame
bindings.
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.
oraCommit
commits the current transaction in the connection.
oraRollback
roll backs the current transaction in the connection.
.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
.