From 26a8d3d4654f0949abdf4d87b8898219329a7d39 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Tue, 7 Nov 2023 07:51:30 -0600 Subject: [PATCH 1/2] Correct vignette titles --- vignettes/DBI-advanced.Rmd | 2 +- vignettes/DBI-arrow.Rmd | 2 +- vignettes/DBI-history.Rmd | 2 +- vignettes/DBI.Rmd | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vignettes/DBI-advanced.Rmd b/vignettes/DBI-advanced.Rmd index a9d3434f5..3ce9be265 100644 --- a/vignettes/DBI-advanced.Rmd +++ b/vignettes/DBI-advanced.Rmd @@ -4,7 +4,7 @@ author: "James Wondrasek, Kirill Müller" date: "17/03/2020" output: rmarkdown::html_vignette vignette: > - %\VignetteIndexEntry{"Advanced DBI Usage"} + %\VignetteIndexEntry{Advanced DBI Usage} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- diff --git a/vignettes/DBI-arrow.Rmd b/vignettes/DBI-arrow.Rmd index f65b5937f..cc793c49e 100644 --- a/vignettes/DBI-arrow.Rmd +++ b/vignettes/DBI-arrow.Rmd @@ -4,7 +4,7 @@ author: "Kirill Müller" date: "29/09/2022" output: rmarkdown::html_vignette vignette: > - %\VignetteIndexEntry{"Using DBI with Arrow"} + %\VignetteIndexEntry{Using DBI with Arrow} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- diff --git a/vignettes/DBI-history.Rmd b/vignettes/DBI-history.Rmd index 98fbe6072..a4013d2eb 100644 --- a/vignettes/DBI-history.Rmd +++ b/vignettes/DBI-history.Rmd @@ -3,7 +3,7 @@ title: "History of DBI" author: "David James" output: rmarkdown::html_vignette vignette: > - %\VignetteIndexEntry{"History of DBI"} + %\VignetteIndexEntry{History of DBI} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- diff --git a/vignettes/DBI.Rmd b/vignettes/DBI.Rmd index 656a324eb..5262a982a 100644 --- a/vignettes/DBI.Rmd +++ b/vignettes/DBI.Rmd @@ -4,7 +4,7 @@ author: "James Wondrasek, Katharina Brunner, Kirill Müller" date: "27 February 2020" output: rmarkdown::html_vignette vignette: > - %\VignetteIndexEntry{"Introduction to DBI"} + %\VignetteIndexEntry{Introduction to DBI} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- From 1d47365119345f22bd6b4f2a297ee91640f74d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Wed, 8 Nov 2023 09:40:02 +0100 Subject: [PATCH 2/2] Add missing dbDisconnect() --- vignettes/DBI-advanced.Rmd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vignettes/DBI-advanced.Rmd b/vignettes/DBI-advanced.Rmd index 3ce9be265..980e9c5ea 100644 --- a/vignettes/DBI-advanced.Rmd +++ b/vignettes/DBI-advanced.Rmd @@ -240,10 +240,15 @@ dbGetRowsAffected(rs) dbClearResult(rs) dbReadTable(con, "cars") +``` + +Do not forget to disconnect from the database at the end. +```{r} dbDisconnect(con) ``` + ## SQL transactions with DBI DBI allows you to group multiple queries into a single atomic transaction. Transactions are initiated with `dbBegin()` and either made persistent with `dbCommit()` or undone with `dbRollback()`.