Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRAN release v1.2.3 #483

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: DBI
Title: R Database Interface
Version: 1.2.2.9007
Version: 1.2.3
Date: 2024-05-02
Authors@R: c(
person("R Special Interest Group on Databases (R-SIG-DB)", role = "aut"),
Expand Down
44 changes: 6 additions & 38 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,30 @@
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->

# DBI 1.2.2.9007 (2024-05-02)
# DBI 1.2.3 (2024-06-02)

## Bug fixes

- `dbQuoteLiteral()` uses exponential notation for numeric values (#404, #471).

- `dbQuoteLiteral()` uses the format `"%Y-%m-%d %H-%M-%S%z"` which is understood by more databases (#467, #474).

## Chore

- RSQLite test updates (#472).

## Uncategorized

- Merge branch 'docs'.


# DBI 1.2.2.9006 (2024-04-17)

## Documentation

- Set BS version explicitly for now (@maelle, #478).


# DBI 1.2.2.9005 (2024-04-16)

## Documentation

- Include `dbGetInfo()` in the spec (#477).


# DBI 1.2.2.9004 (2024-04-14)

## Continuous integration

- Avoid broken Windows checks (#475).


# DBI 1.2.2.9003 (2024-04-01)

- Internal changes only.


# DBI 1.2.2.9002 (2024-03-10)

## Documentation

- Set BS version explicitly for now (@maelle, #478).
- Include `dbGetInfo()` in the spec (#477).
- Fix typo (@salim-b, #469).

## Uncategorized

# DBI 1.2.2.9001 (2024-02-16)

- Merge branch 'cran-1.2.2'.


# DBI 1.2.2.9000 (2024-02-09)

- Merge branch 'docs'.
- Internal changes only.
- Merge branch 'cran-1.2.2'.


Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ All classes are _virtual_: they cannot be instantiated directly and instead must

* [Databases using R](https://db.rstudio.com/) describes the tools and best practices in this ecosystem.

* The [DBI project site](https://www.r-dbi.org/) hosts a blog where recent developments are presented.
* The [DBI project site](https://r-dbi.org/) hosts a blog where recent developments are presented.

* [A history of DBI](https://dbi.r-dbi.org/articles/DBI-history.html) by David James, the driving force behind the development of DBI, and many of the packages that implement it.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ instead must be subclassed.
- [Databases using R](https://db.rstudio.com/) describes the tools and
best practices in this ecosystem.

- The [DBI project site](https://www.r-dbi.org/) hosts a blog where
- The [DBI project site](https://r-dbi.org/) hosts a blog where
recent developments are presented.

- [A history of DBI](https://dbi.r-dbi.org/articles/DBI-history.html) by
Expand Down
13 changes: 8 additions & 5 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
DBI 1.2.2
DBI 1.2.3

## R CMD check results

- [x] Checked locally, R 4.3.2
- [x] Checked on CI system, R 4.3.2
- [x] Checked locally, R 4.3.3
- [x] Checked on CI system, R 4.4.0
- [x] Checked on win-builder, R devel

## Current CRAN check results

- [x] Checked on 2024-02-09, problems found: https://cran.r-project.org/web/checks/check_results_DBI.html
- [x] ERROR: r-devel-linux-x86_64-fedora-gcc, r-release-macos-arm64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-windows-x86_64: Fixed
- [x] Checked on 2024-06-02, problems found: https://cran.r-project.org/web/checks/check_results_DBI.html
- [ ] NOTE: r-devel-linux-x86_64-fedora-clang
Undeclared package ‘withr’ in Rd xrefs

Check results at: https://cran.r-project.org/web/checks/check_results_DBI.html
6 changes: 2 additions & 4 deletions vignettes/DBI-advanced.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ vignette: >
library(knitr)
opts_chunk$set(
echo = TRUE,
error = Sys.getenv("IN_PKGDOWN") != "true" || (getRversion() < "3.5"),
# FIXME: Bring back when relational.fit clone is up
eval = FALSE
error = Sys.getenv("IN_PKGDOWN") != "true" || (getRversion() < "3.5")
)

knit_print.data.frame <- function(x, ...) {
Expand Down Expand Up @@ -55,7 +53,7 @@ library(DBI)

con <- dbConnect(
RMariaDB::MariaDB(),
host = "relational.fit.cvut.cz",
host = "db.relational-data.org",
port = 3306,
username = "guest",
password = "relational",
Expand Down
14 changes: 6 additions & 8 deletions vignettes/DBI.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ vignette: >
```{r setup, include=FALSE}
knitr::opts_chunk$set(
echo = TRUE,
error = Sys.getenv("IN_PKGDOWN") != "true" || (getRversion() < "3.5"),
# FIXME: Bring back when relational.fit clone is up
eval = FALSE
error = Sys.getenv("IN_PKGDOWN") != "true" || (getRversion() < "3.5")
)
```

Expand Down Expand Up @@ -48,15 +46,15 @@ For more advanced features, such as parameterized queries, transactions, and mor

## How to connect to a database using DBI

The following code establishes a connection to the Sakila database hosted by the Relational Dataset Repository at `https://relational.fit.cvut.cz/dataset/Sakila`, lists all tables on the database, and closes the connection.
The following code establishes a connection to the Sakila database hosted by the Relational Dataset Repository at `https://relational-data.org/dataset/Sakila`, lists all tables on the database, and closes the connection.
The database represents a fictional movie rental business and includes tables describing films, actors, customers, stores, etc.:

```{r}
library(DBI)

con <- dbConnect(
RMariaDB::MariaDB(),
host = "relational.fit.cvut.cz",
host = "db.relational-data.org",
port = 3306,
username = "guest",
password = "relational",
Expand Down Expand Up @@ -87,10 +85,10 @@ The code to connect to the database could then look like this:
```{r eval = FALSE}
con <- dbConnect(
RMariaDB::MariaDB(),
host = "relational.fit.cvut.cz",
host = "db.relational-data.org",
port = 3306,
username = "guest",
password = keyring::key_get("relational.fit.cvut.cz", "guest"),
password = keyring::key_get("db.relational-data.org", "guest"),
dbname = "sakila"
)
```
Expand All @@ -103,7 +101,7 @@ It takes as arguments a database connection and a table name and returns a chara


```{r}
con <- dbConnect(RMariaDB::MariaDB(), username = "guest", password = "relational", host = "relational.fit.cvut.cz", port = 3306, dbname = "sakila")
con <- dbConnect(RMariaDB::MariaDB(), username = "guest", password = "relational", host = "db.relational-data.org", port = 3306, dbname = "sakila")
dbListFields(con, "film")
```

Expand Down
Loading