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.

See also

Examples

library(restez)
restez_path_set(filepath = tempdir())
#> ... Creating '/tmp/RtmpIidatL/restez'
#> ... Creating '/tmp/RtmpIidatL/restez/downloads'
demo_db_create(n = 5)
(count_db_ids())
#> [1] 5

# delete demo after example
db_delete(everything = TRUE)