This website works better with JavaScript.
Home
Explore
Help
Sign In
maxx
/
geologist
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Use one db conn object
master
Maxime Wack
6 years ago
parent
7d955b8162
commit
2db9cef26c
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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 %>%
Write
Preview
Loading…
Cancel
Save