Browse Source

Use one db conn object

master
Maxime Wack 6 years ago
parent
commit
2db9cef26c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      geoip.R

+ 2
- 2
geoip.R View File

@@ -16,13 +16,13 @@ read_delim("access.log", delim = " ", col_names = c("ip", "null1", "user", "time

known_ips <- character(0)

src_sqlite("access.db") %>%
db %>%
tbl("geoip") %>%
select(query) %>%
collect %>%
pull(query) -> known_ips

src_sqlite("access.db") %>%
db %>%
tbl("access") %>%
select(ip) %>%
collect %>%


Loading…
Cancel
Save