Skip to contents

ledgr_temp_store() returns a path for a temporary .duckdb store and clears any stale file already at that exact path. It does not initialize, open, seal, or manage a ledgr store.

Usage

ledgr_temp_store(path = NULL, pattern = "ledgr_store_", tmpdir = tempdir())

Arguments

path

Optional .duckdb path to clear and return. When NULL, a fresh temporary path is generated.

pattern

Prefix used when path = NULL.

tmpdir

Temporary directory used when path = NULL.

Value

A character scalar path ending in .duckdb.

Examples

db_path <- ledgr_temp_store()
file.exists(db_path)
#> [1] FALSE