dbGetInfo-methods

0th

Percentile

Database interface meta-data

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

Keywords
methods, interface, database
References

See the Database Interface definition document DBI.pdf in the base directory of this package or http://stat.bell-labs.com/RS-DBI.

See Also

SQLite, dbDriver, dbConnect, dbSendQuery, dbGetQuery, fetch, dbCommit, dbGetInfo, dbListTables, dbReadTable.

Aliases
  • dbGetInfo
  • dbGetDBIVersion-methods
  • dbGetStatement-methods
  • dbGetRowCount-methods
  • dbGetRowsAffected-methods
  • dbColumnInfo-methods
  • dbHasCompleted-methods
  • dbGetInfo,SQLiteObject-method
  • dbGetInfo,SQLiteDriver-method
  • dbGetInfo,SQLiteConnection-method
  • dbGetInfo,SQLiteResult-method
  • dbGetStatement,SQLiteResult-method
  • dbGetRowCount,SQLiteResult-method
  • dbGetRowsAffected,SQLiteResult-method
  • dbColumnInfo,SQLiteResult-method
  • dbHasCompleted,SQLiteResult-method
Examples
data(USArrests)
drv <- dbDriver("SQLite")
con <- dbConnect(drv, dbname=":memory:")
dbWriteTable(con, "t1", USArrests)
dbWriteTable(con, "t2", USArrests)

dbListTables(con)

rs <- dbSendQuery(con, "select * from t1 where UrbanPop >= 80")
dbGetStatement(rs)
dbHasCompleted(rs)

info <- dbGetInfo(rs)
names(info)
info$fields

fetch(rs, n=2)
dbHasCompleted(rs)
info <- dbGetInfo(rs)
info$fields
dbClearResult(rs)

names(dbGetInfo(drv))  

# DBIConnection info
names(dbGetInfo(con))

dbDisconnect(con)
Documentation reproduced from package RSQLite, version 0.6-7, License: LGPL (>= 2)

Community examples

Looks like there are no examples yet.