PostgreSQLResult-class | R Documentation |
PostgreSQL's query results class. This classes encapsulates the
result of an SQL statement (either select
or not).
The main generator is dbSendQuery
.
Class "DBIResult"
, directly.
Class "PostgreSQLObject"
, directly.
Class "DBIObject"
, by class "DBIResult".
Class "dbObjectId"
, by class "PostgreSQLObject".
signature(from = "PostgreSQLConnection", to = "PostgreSQLResult")
: ...
signature(res = "PostgreSQLResult")
: ...
signature(res = "PostgreSQLResult")
: ...
signature(conn = "PostgreSQLResult")
: ...
signature(dbObj = "PostgreSQLResult")
: ...
signature(res = "PostgreSQLResult")
: ...
signature(res = "PostgreSQLResult")
: ...
signature(res = "PostgreSQLResult")
: ...
signature(res = "PostgreSQLResult")
: ...
signature(conn = "PostgreSQLResult", name = "missing")
: ...
signature(res = "PostgreSQLResult", n = "numeric")
: ...
signature(res = "PostgreSQLResult", n = "missing")
: ...
signature(object = "PostgreSQLResult")
: ...
See the Database Interface definition document
DBI.pdf
in the base directory of this package
or https://developer.r-project.org/db/
DBI base classes:
DBIObject-class
DBIDriver-class
DBIConnection-class
DBIResult-class
PostgreSQL classes:
PostgreSQLObject-class
PostgreSQLDriver-class
PostgreSQLConnection-class
PostgreSQLResult-class
## Not run:
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, dbname = "template1")
## rs is the result set
rs <- dbSendQuery(con,"select * from sales")
## display the first three values of result set
fetch(rs,n=3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.