MySQL
.## MySQLDriver-related
mysqlInitDriver(max.con=16, fetch.default.rec = 500, force.reload=FALSE)
mysqlDriverInfo(obj, what, ...)
mysqlDescribeDriver(obj, verbose = FALSE, ...)
mysqlCloseDriver(drv, ...) ## MySQLConnection-related
mysqlNewConnection(drv, dbname, username, password, host, unix.socket,
port, client.flag, groups)
mysqlCloneConnection(con, ...)
mysqlConnectionInfo(obj, what, ...)
mysqlDescribeConnection(obj, verbose = FALSE, ...)
mysqlCloseConnection(con, ...)
## MySQLResult-related
mysqlExecStatement(con, statement)
mysqlFetch(res, n=0, ...)
mysqlQuickSQL(con, statement)
mysqlResultInfo(obj, what, ...)
mysqlDescribeResult(obj, verbose = FALSE, ...)
mysqlCloseResult(res, ...)
mysqlDescribeFields(res, ...)
## data mappings, convenience functions, and extensions
mysqlDataType(obj, ...)
mysqlReadTable(con, name, row.names = "row.names", check.names = TRUE, ...)
mysqlWriteTable(con, name, value, field.types, row.names = TRUE,
overwrite=FALSE, append=FALSE, ..., allow.keywords = FALSE)
mysqlFetch
.
The default is 500.fetch.default.rec
).
Note that the driver is a singleton (subsequent inits just returned the
previously initialized MySQLConnection
,
MySQLResult
).FALSE
.MySQLDriver
object as produced by mysqlInitDriver
.MySQLConnection
object as produced by mysqlNewConnection
and mysqlCloneConnection
.MySQLResult
object as produced by by mysqlExecStatement
.MySQL
.""
, which is
interpreted as localhost
by the MySQL's API.FALSE
.fetch.default.rec
was specified
during driver initialization mysqlInit
value
to SQL data types. The default is
sapply(value,SQLDataType)
, see MySQLSQLType
.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
.FALSE
, forcing mysqlWriteTable
to modify column names to makemysqlInitDriver
returns an MySQLDriver
object. mysqlDriverInfo
returns a list of name-value metadata pairs.
mysqlDescribeDriver
returns NULL
(displays the object's
metadata).
mysqlCloseDriver
returns a logical indicating whether the
operation succeeded or not.
mysqlNewConnection
returns an MySQLConnection
object.
mysqlCloneConnection
returns an MySQLConnection
object.
mysqlConnectionInfo
returns a list of name-value metadata pairs.
mysqlDescribeConnection
returns NULL
(displays the
object's metadata).
mysqlCloseConnection
returns a logical indicating whether the
operation succeeded or not.
mysqlExecStatement
returns an MySQLResult
object.
mysqlFetch
returns a data.frame.
mysqlQuickSQL
returns either a data.frame if the statement
is
a select
-like or NULL otherwise.
mysqlDescribeResult
returns NULL
(displays the object's
metadata).
mysqlCloseResult
returns a logical indicating whether the
operation succeeded or not.
mysqlDescribeFields
returns a data.frame with one row per field
with columns name
, Sclass
, type
, len
,
precision
, scale
, and nullOK
which fully describe
each field in a result set. Except for Sclass
(which shows the
mapping of the field type into an R/S-Plus class) all the information
pertains to MySQL's data storage attributes.
mysqlReadTable
returns a data.frame with the contents of the
DBMS table.
mysqlWriteTable
returns a logical indicating whether the
operation succeeded or not.
mysqlDataType
retuns a character string with the closest
mysqlResultInfo
returns a list of name-value metadata pairs.
.MySQLPkgName
(currently "RMySQL"
),
.MySQLPkgVersion
(the R package version),
.MySQLPkgRCS
(the RCS revision),
.MySQL.NA.string
(character that MySQL uses to
denote NULL
on input),
.MySQLSQLKeywords
(a lot!)
.conflicts.OK
.