This function is heavily inspired by the unexported dbplyr function unique_table_name
Usage
unique_table_name(scope = "SCDB")
Arguments
- scope
(character(1)
)
A naming scope to generate the table name within.
Value
A character string for a table name based on the given scope parameter
Examples
print(unique_table_name()) # SCDB_001
#> SCDB_5849_004
print(unique_table_name()) # SCDB_002
#> SCDB_5849_005
print(unique_table_name("test")) # test_001
#> test_5849_001
print(unique_table_name("test")) # test_002
#> test_5849_002