Skip to content

Commit

Permalink
prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
rfhb committed Sep 23, 2023
1 parent e9d677e commit e2211c4
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Expand Up @@ -4,7 +4,7 @@ Description: Simplified document database access and manipulation,
providing a common API across supported 'NoSQL' databases
'Elasticsearch', 'CouchDB', 'MongoDB' as well as
'SQLite/JSON1', 'PostgreSQL', and 'DuckDB'.
Version: 0.9.7.9000
Version: 0.9.8
Authors@R: c(
person(given = "Ralf",
family = "Herold",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
@@ -1,3 +1,7 @@
# nodbi 0.9.8

* escaping newline character within a JSON value, in `docdb_*()` functions

# nodbi 0.9.7

* changed `docdb_update()` to directly use ndjson from file for duckdb
Expand Down
2 changes: 1 addition & 1 deletion R/nodbi-package.R
Expand Up @@ -80,7 +80,7 @@ contacts <- '
"eyeColor": "green",
"name": "Lacy Chen",
"email": "lacychen@conjurica.com",
"about": "Sunt consequat ad dolore. Exercitation nisi reprehenderit.",
"about": "Sunt consequat ad dolore.\\nExercitation nisi reprehenderit.",
"registered": "2014-08-03T12:11:54 -02:00",
"tags": [
"nulla",
Expand Down
36 changes: 18 additions & 18 deletions README.Rmd
Expand Up @@ -22,7 +22,7 @@ knitr::opts_chunk$set(
[![CRAN status](https://www.r-pkg.org/badges/version/nodbi)](https://CRAN.R-project.org/package=nodbi)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)

`nodbi` is an R package that provides a single interface for several NoSQL databases and databases with JSON functionality, with the same function parameters and return values across all database backends. Last updated 2023-09-17.
`nodbi` is an R package that provides a single interface for several NoSQL databases and databases with JSON functionality, with the same function parameters and return values across all database backends. Last updated 2023-09-23.

| Currently, `nodbi` supports as database backends | for an `R` object of any of these data types | for the operations |
|------------------------|------------------------|------------------------|
Expand Down Expand Up @@ -315,7 +315,7 @@ testFunction <- function(src, key, value, query, fields) {
docdb_update(src, key, value = value, query = query)
}
# 2023-09-17 with 2015 mobile hardware, databases via homebrew
# 2023-09-23 with 2015 mobile hardware, databases via homebrew
rbenchmark::benchmark(
MongoDB = testFunction(src = srcMongo, key, value, query, fields),
SQLite = testFunction(src = srcSqlite, key, value, query, fields),
Expand All @@ -327,33 +327,33 @@ rbenchmark::benchmark(
columns = c('test', 'replications', 'elapsed')
)
# test replications elapsed
# 4 CouchDB 10 245.4
# 3 Elastic 10 50.5 # 10s to be subtracted
# 5 PostgreSQL 10 3.2
# 6 DuckDB 10 2.4
# 2 SQLite 10 2.3
# 1 MongoDB 10 1.9
# 4 CouchDB 10 303.5
# 3 Elastic 10 69.9 # 10s to be subtracted
# 5 PostgreSQL 10 3.9
# 2 SQLite 10 3.4
# 6 DuckDB 10 3.2
# 1 MongoDB 10 2.5
```

## Testing

Every database backend is subjected to identical tests, see [core-nodbi.R](./tests/testthat/core-nodbi.R).

```{r}
# 2023-09-13
# 2023-09-23
testthat::test_local()
# ✔ | F W S OK | Context
# ✔ | 2 107 | couchdb [78.8s]
# ✔ | 144 | duckdb [3.8s]
# ✔ | 3 72 | elastic [78.3s]
# ✔ | 1 137 | mongodb [4.0s]
# ✔ | 147 | postgres [31.7s]
# ✔ | 146 | sqlite [28.2s]
# ✔ | 2 107 | couchdb [118.7s]
# ✔ | 144 | duckdb [5.2s]
# ✔ | 3 72 | elastic [104.2s]
# ✔ | 1 137 | mongodb [5.5s]
# ✔ | 147 | postgres [43.2s]
# ✔ | 146 | sqlite [41.7s]
#
# ══ Results ══════════════════════════════════════════════════════════════════════════════════════
# Duration: 225.3 s
# ══ Results ══════════════════════════════════════════════════════════════════════════════════════
# Duration: 318.9 s
#
# ── Skipped tests (6) ────────────────────────────────────────────────────────────────────────────
# ── Skipped tests (6) ────────────────────────────────────────────────────────────────────────────
# • auto disconnect not relevant (3): core-nodbi.R:429:5, core-nodbi.R:429:5, core-nodbi.R:429:5
# • bulk updates not yet implemented (2): core-nodbi.R:287:3, core-nodbi.R:287:3
# • queries need to be translated into elastic syntax (1): core-nodbi.R:207:3
Expand Down
36 changes: 18 additions & 18 deletions README.md
Expand Up @@ -11,7 +11,7 @@ stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://
`nodbi` is an R package that provides a single interface for several
NoSQL databases and databases with JSON functionality, with the same
function parameters and return values across all database backends. Last
updated 2023-09-17.
updated 2023-09-23.

| Currently, `nodbi` supports as database backends | for an `R` object of any of these data types | for the operations |
|--------------------------------------------------|----------------------------------------------|--------------------|
Expand Down Expand Up @@ -353,7 +353,7 @@ testFunction <- function(src, key, value, query, fields) {
docdb_update(src, key, value = value, query = query)
}

# 2023-09-17 with 2015 mobile hardware, databases via homebrew
# 2023-09-23 with 2015 mobile hardware, databases via homebrew
rbenchmark::benchmark(
MongoDB = testFunction(src = srcMongo, key, value, query, fields),
SQLite = testFunction(src = srcSqlite, key, value, query, fields),
Expand All @@ -365,12 +365,12 @@ rbenchmark::benchmark(
columns = c('test', 'replications', 'elapsed')
)
# test replications elapsed
# 4 CouchDB 10 245.4
# 3 Elastic 10 50.5 # 10s to be subtracted
# 5 PostgreSQL 10 3.2
# 6 DuckDB 10 2.4
# 2 SQLite 10 2.3
# 1 MongoDB 10 1.9
# 4 CouchDB 10 303.5
# 3 Elastic 10 69.9 # 10s to be subtracted
# 5 PostgreSQL 10 3.9
# 2 SQLite 10 3.4
# 6 DuckDB 10 3.2
# 1 MongoDB 10 2.5
```

## Testing
Expand All @@ -379,20 +379,20 @@ Every database backend is subjected to identical tests, see
[core-nodbi.R](./tests/testthat/core-nodbi.R).

``` r
# 2023-09-13
# 2023-09-23
testthat::test_local()
# ✔ | F W S OK | Context
# ✔ | 2 107 | couchdb [78.8s]
# ✔ | 144 | duckdb [3.8s]
# ✔ | 3 72 | elastic [78.3s]
# ✔ | 1 137 | mongodb [4.0s]
# ✔ | 147 | postgres [31.7s]
# ✔ | 146 | sqlite [28.2s]
# ✔ | 2 107 | couchdb [118.7s]
# ✔ | 144 | duckdb [5.2s]
# ✔ | 3 72 | elastic [104.2s]
# ✔ | 1 137 | mongodb [5.5s]
# ✔ | 147 | postgres [43.2s]
# ✔ | 146 | sqlite [41.7s]
#
# ══ Results ══════════════════════════════════════════════════════════════════════════════════════
# Duration: 225.3 s
# ══ Results ══════════════════════════════════════════════════════════════════════════════════════
# Duration: 318.9 s
#
# ── Skipped tests (6) ────────────────────────────────────────────────────────────────────────────
# ── Skipped tests (6) ────────────────────────────────────────────────────────────────────────────
# • auto disconnect not relevant (3): core-nodbi.R:429:5, core-nodbi.R:429:5, core-nodbi.R:429:5
# • bulk updates not yet implemented (2): core-nodbi.R:287:3, core-nodbi.R:287:3
# • queries need to be translated into elastic syntax (1): core-nodbi.R:207:3
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci/nodbi",
"issueTracker": "https://github.com/ropensci/nodbi/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.9.7",
"version": "0.9.8",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -255,7 +255,7 @@
"applicationCategory": "Databases",
"isPartOf": "https://ropensci.org",
"keywords": ["database", "MongoDB", "Elasticsearch", "CouchDB", "SQLite", "PostgreSQL", "DuckDB", "NoSQL", "JSON", "documents", "rstats", "nosql", "couchdb", "mongodb", "elasticsearch", "r", "r-package", "sqlite", "postgresql"],
"fileSize": "533.833KB",
"fileSize": "534.21KB",
"releaseNotes": "https://github.com/ropensci/nodbi/blob/master/NEWS.md",
"readme": "https://github.com/ropensci/nodbi/blob/master/README.md",
"contIntegration": ["https://github.com/ropensci/nodbi/actions?query=workflow%3AR-CMD-check", "https://app.codecov.io/gh/rfhb/nodbi"],
Expand Down
7 changes: 1 addition & 6 deletions cran-comments.md
Expand Up @@ -20,12 +20,7 @@

### Bug fixes

* regression error from not specifying top-level jq script
* corrected test exceptions for mongodb, updated GitHub Actions
* changed `docdb_update()` to directly use ndjson from file for duckdb
* cleaned up unnecessary code in `docdb_create()`
* corrected and improved field selection in `docdb_query()`
* corrected test exceptions for mongodb, updated GitHub Actions, expanded tests
* adding escaping newline character which some users had within a JSON value


## revdepcheck results
Expand Down
7 changes: 4 additions & 3 deletions revdep/README.md
Expand Up @@ -10,15 +10,16 @@
|collate |en_GB.UTF-8 |
|ctype |en_GB.UTF-8 |
|tz |Europe/Berlin |
|date |2023-09-17 |
|date |2023-09-23 |
|rstudio |2023.06.2+561 Mountain Hydrangea (desktop) |
|pandoc |3.1.7 @ /usr/local/bin/ (via rmarkdown) |
|pandoc |3.1.7 @ /usr/local/bin/pandoc |

# Dependencies

|package |old |new |Δ |
|:-------|:-----|:-----|:--|
|nodbi |0.9.6 |0.9.7 |* |
|nodbi |0.9.7 |0.9.8 |* |
|jqr |NA |1.3.0 |* |

# Revdeps

0 comments on commit e2211c4

Please sign in to comment.