You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 27, 2019. It is now read-only.
items.each do |item|
if ScraperWiki.select("* from swdata where ....).empty?
ScraperWiki.save_sqlite(["key123"], item)
else
puts "Skipping " + item["key123"]
end
end
and the db (or rather table) doesn't exist then I get an exception.
/Users/alex/.rvm/gems/ruby-2.1.2/gems/sqlite_magic-0.0.3/lib/sqlite_magic.rb:49:in `rescue in execute': no such table: swdata (SqliteMagic::NoSuchTable)
from /Users/alex/.rvm/gems/ruby-2.1.2/gems/sqlite_magic-0.0.3/lib/sqlite_magic.rb:42:in `execute'
from /Users/alex/.rvm/gems/ruby-2.1.2/gems/scraperwiki-3.0.2/lib/scraperwiki.rb:186:in `select