Closed rfhb closed 5 months ago
Following the switch to JSONB for RSQLite as backend, a cast back to JSON is necessary but was missing in docdb_get.src_sqlite() once any docdb_update() has been applied to any document:
JSONB
RSQLite
JSON
docdb_get.src_sqlite()
docdb_update()
library(nodbi) src <- src_sqlite() key <- "myKey" docdb_create(src = src, key = key, value = mtcars) docdb_update(src = src, key = key, value = '{"vs": 77}', query = '{"gear": {"$in": [5,4]}}') docdb_get(src = src, key = key) # Error in FUN(X[[i]], ...) : invalid multibyte string, element 1
Following the switch to
JSONB
forRSQLite
as backend, a cast back toJSON
is necessary but was missing indocdb_get.src_sqlite()
once anydocdb_update()
has been applied to any document: