View source: R/build-new-nhl-db.R
This is a wrapper for the ordered running of a specific set of functions aimed at generating a brand new database. However! That database and schema need to _already_ exist, or this will fail (or will it?).
1 2 3 4 5 6 7 | build_new_nhl_db(
seasons,
dbname = "hockey",
schema = "nhl",
num_cores = 1,
conn = connect_to_db()
)
|
seasons |
Which seasons to build |
dbname |
A Database name to put the tables. |
schema |
A schema within that database to put the tables. |
num_cores |
The number of cores, if choosing to parallelize (default = 1) |
conn |
String, takes value 'sqlite' or – a default one is generated if not provided. Defaults to 'postgres' |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.