build_new_nhl_db: Function to build NHL database from scratch

Description Usage Arguments

View source: R/build-new-nhl-db.R

Description

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?).

Usage

1
2
3
4
5
6
7
build_new_nhl_db(
  seasons,
  dbname = "hockey",
  schema = "nhl",
  num_cores = 1,
  conn = connect_to_db()
)

Arguments

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'


anthonyshook/nhldata documentation built on Feb. 22, 2021, 3:51 a.m.