Learn R Programming

RPostgreSQL (version 0.7-5)

dbGetInfo-methods: Database interface meta-data

Description

These methods are straight-forward implementations of the corresponding generic functions.

Arguments

Methods

dbObj

any object that implements some functionality in the R/S-Plus interface to databases (a driver, a connection or a result set).

res

an PostgreSQLResult.

...

currently not being used.

References

See the Database Interface definition document DBI.pdf in the base directory of this package or https://cran.r-project.org/package=DBI.

See Also

Examples

Run this code
if (FALSE) {
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, user= "user", password="password", dbname="sample")

dbListTables(con)

rs <- dbSendQuery(con, query.sql)
dbGetStatement(rs)
dbHasCompleted(rs)

info <- dbGetInfo(rs)
names(dbGetInfo(drv))

# DBIConnection info
names(dbGetInfo(con))

# DBIResult info
names(dbGetInfo(rs)) 
}

Run the code above in your browser using DataLab