powered by
This function is heavily inspired by the unexported dbplyr function unique_table_name
unique_table_name(scope = "SCDB")
A character string for a table name based on the given scope parameter
(character(1)) A naming scope to generate the table name within.
character(1)
print(unique_table_name()) # SCDB_001 print(unique_table_name()) # SCDB_002 print(unique_table_name("test")) # test_001 print(unique_table_name("test")) # test_002
Run the code above in your browser using DataLab