forked from smithjd/sql-pet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
980-dbi-summary-table.Rmd
26 lines (24 loc) · 2.5 KB
/
980-dbi-summary-table.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# DBI package functions - INDEX {#chapter_appendix-dbi-index}
Where are these covered and should the by included?
| DBI | 1st time | Call Example/Notes |
| --------------- | ---------- | ------------------------------------------------------------ |
| DBIConnct | 6.3.2 (04) | in sp_get_postgres_connection |
| dbAppendTable | | |
| dbCreateTable | | |
| dbDisconnect | 6.4n (04) | dbDisconnect(con) |
| dbExecute | 10.4.2 (13) | Executes a statement and returns the number of rows affected. dbExecute() comes with a default implementation (which should work with most backends) that calls dbSendStatement(), then dbGetRowsAffected(), ensuring that the result is always free-d by dbClearResult(). |
| dbExistsTable | | dbExistsTable(con,'actor') |
| dbFetch | 17.1 (72) | dbFetch(rs) |
| dbGetException | | |
| dbGetInfo | | dbGetInfo(con) |
| dbGetQuery | 10.4.1 (13) | dbGetQuery(con,'select * from store;') |
| dbIsReadOnly | | dbIsReadOnly(con) |
| dbIsValid | | dbIsValid(con) |
| dbListFields | 6.3.3 (04) | DBI::dbListFields(con, "mtcars") |
| dbListObjects | | dbListObjects(con) |
| dbListTables | 6.3.2 (04) | DBI::dbListTables(con, con) |
| dbReadTable | 8.1.2 | DBI::dbReadTable(con, "rental") |
| dbRemoveTable | | |
| dbSendQuery | 17.1 (72) | rs <- dbSendQuery(con, "SELECT * FROM mtcars WHERE cyl = 4") |
| dbSendStatement | | The dbSendStatement() method only submits and synchronously executes the SQL data manipulation statement (e.g., UPDATE, DELETE, INSERT INTO, DROP TABLE, ...) to the database engine. |
| dbWriteTable | 6.3.3 (04) | dbWriteTable(con, "mtcars", mtcars, overwrite = TRUE) |