Skip to contents

Return the number of ids in a user's restez database.

Usage

count_db_ids(db = "nucleotide")

Arguments

db

character, database name

Value

integer

Details

Requires an open connection. If no connection or db 0 is returned.

Examples

library(restez)
restez_path_set(filepath = tempdir())
#> ... Creating '/tmp/RtmpRh5I92/restez'
#> ... Creating '/tmp/RtmpRh5I92/restez/downloads'
demo_db_create(n = 5)
#> duckdb: caching downloaded extensions in the package library:
#>  /github/home/R/x86_64-pc-linux-gnu-library/4.6/duckdb/extensions
#>  This is removed when the package is re-installed; see `?duckdb_storage` to choose a different location.
(count_db_ids())
#> [1] 5

# delete demo after example
db_delete(everything = TRUE)