<- DBI::dbConnect(
con ::odbc(),
odbcDriver = "postgresql",
Server = Sys.getenv("DB_SERVER"),
Port = "5432",
Database = "soleng",
UID = Sys.getenv("DB_USER"),
PWD = Sys.getenv("DB_PASSWORD"),
BoolsAsChar = "",
timeout = 10
)
<- tbl(con,
bike_raw_data ::Id(schema="content", name="bike_raw_data"))
DBIglimpse(bike_raw_data)
Rows: ??
Columns: 12
Database: postgres [soleng@localhost:/soleng]
$ station_id <chr> "53", "72", "91", "106", "349", "1", "2", "3…
$ num_bikes_available <dbl> 12, 9, 4, 15, 22, 13, 10, 5, 11, 6, 16, 9, 5…
$ num_ebikes_available <dbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
$ num_bikes_disabled <dbl> 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0,…
$ num_docks_available <dbl> 6, 10, 18, 20, 9, 2, 1, 12, 0, 5, 3, 5, 14, …
$ num_docks_disabled <dbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
$ is_installed <dbl> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,…
$ is_renting <dbl> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,…
$ is_returning <dbl> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,…
$ last_reported <dbl> 1568996717, 1568996326, 1568996591, 15689965…
$ eightd_has_available_keys <lgl> FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FA…
$ time <dttm> 2019-09-20 16:25:54, 2019-09-20 16:25:54, 2…
<- tbl(con, DBI::Id(schema="content", name="bike_station_info"))
bike_station_info glimpse(bike_station_info)
Rows: ??
Columns: 5
Database: postgres [soleng@localhost:/soleng]
$ station_id <chr> "6edca550-d78f-4c5d-ad2c-79d1ce88c48d", "84a0159b-5f00-41…
$ name <chr> "White Oak Transit Center", "1st & Q St SW", "Shady Grove…
$ lat <dbl> 39.04104, 38.87082, 39.11977, 38.79306, 38.88332, 38.9586…
$ lon <dbl> -76.98713, -77.01192, -77.16609, -77.04944, -76.92531, -7…
$ last_updated <dttm> 2024-12-07 00:52:55, 2024-12-07 00:52:55, 2024-12-07 00:…