PostgreSQL.## PostgreSQLDriver-related
postgresqlInitDriver(max.con=16, fetch.default.rec = 500, force.reload=FALSE)
postgresqlDriverInfo(obj, what, ...)
postgresqlDescribeDriver(obj, verbose = FALSE, ...)
postgresqlCloseDriver(drv, ...) ## PostgreSQLConnection-related
postgresqlNewConnection(drv,user,password,host,dbname,port,tty,options)
postgresqlCloneConnection(con, ...)
postgresqlConnectionInfo(obj, what, ...)
postgresqlDescribeConnection(obj, verbose = FALSE, ...)
postgresqlCloseConnection(con, ...)
## PostgreSQLResult-related
postgresqlExecStatement(con, statement)
postgresqlFetch(res, n=0, ...)
postgresqlQuickSQL(con, statement)
postgresqlResultInfo(obj, what, ...)
postgresqlDescribeResult(obj, verbose = FALSE, ...)
postgresqlCloseResult(res, ...)
postgresqlDescribeFields(res, ...)
## data mappings, convenience functions, and extensions
postgresqlDataType(obj, ...)
postgresqlReadTable(con, name, row.names = "row_names", check.names = TRUE, ...)
postgresqlWriteTable(con, name, value, field.types, row.names = TRUE,
overwrite=FALSE, append=FALSE, ..., allow.keywords = FALSE)
postgresqlImportFile(con, name, value, field.types, overwrite=FALSE,
append=FALSE, header, row.names, nrows=50, sep=",", eol="
",
skip = 0, quote='"', ...)
## Transaction Management
postgresqlTransactionStatement(con, statement)
postgresqlFetch.
The default is 500.fetch.default.rec).
Note that the driver is a singleton (subsequent inits just returned the
previously initialized PostgreSQLConnection,
PostgreSQLResult).FALSE.PostgreSQLDriver object as produced by postgresqlInitDriver.PostgreSQLConnection object as produced by postgresqlNewConnection
and postgresqlCloneConnection.PostgreSQLResult object as produced by by postgresqlExecStatement."", which is
interpreted as localhost by the PostgreSQL's API.FALSE.fetch.default.rec was specified
during driver initialization postgresqlInivalue to SQL data types. The default is
sapply(value,SQLDataType), see PostgreSQLSQLType.read.table, i.e., TRUE if the first
line has one fewer column that the second line.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.read.table from the
input file to create the proper table definition. Default is 50.".FALSE, forcing postgresqlWriteTable
to modify column nampostgresqlInitDriver returns an PostgreSQLDriver object. postgresqlDriverInfo returns a list of name-value metadata pairs.
postgresqlDescribeDriver returns NULL (displays the object's
metadata).
postgresqlCloseDriver returns a logical indicating whether the
operation succeeded or not.
postgresqlNewConnection returns an PostgreSQLConnection object.
postgresqlCloneConnection returns an PostgreSQLConnection object.
postgresqlConnectionInforeturns a list of name-value metadata pairs.
postgresqlDescribeConnection returns NULL (displays the
object's metadata).
postgresqlCloseConnection returns a logical indicating whether the
operation succeeded or not.
postgresqlExecStatement returns an PostgreSQLResult object.
postgresqlFetch returns a data.frame.
postgresqlQuickSQL returns either a data.frame if the statement is
a select-like or NULL otherwise.
postgresqlDescribeResult returns NULL (displays the object's
metadata).
postgresqlCloseResult returns a logical indicating whether the
operation succeeded or not.
postgresqlDescribeFields 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 PostgreSQL's data storage attributes.
postgresqlReadTable returns a data.frame with the contents of the
DBMS table.
postgresqlWriteTable returns a logical indicating whether the
operation succeeded or not.
postgresqlDataType retuns a character string with the closest
postgresqlResultInfo returns a list of name-value metadata pairs.
postgresqlTransactionStatement returns a logical indicating whether the
operation succeeded or not.
.PostgreSQLPkgName (currently "RPostgreSQL"),
.PostgreSQLPkgVersion (the R package version),
.PostgreSQLPkgRCS (the RCS revision),
.PostgreSQL.NA.string (character that PostgreSQL uses to
denote NULL on input),
.PostgreSQLSQLKeywords (a lot!)
.conflicts.OK.