Closed zarino closed 10 years ago
Okay, got it working.
In my (limited) testing, it appears to work. Although scraperwiki::sqliteexecute()
and scraperwiki::sqlitecommit()
don't return the same values as they used to in Classic. I doubt anyone will know or care. And if they do, they can submit a pull request ;-)
Suggest @drj11 merges and deploys this at his earliest convenience.
Hi Zarino.
When I try to use the following in the 'code in your browser' tool scraperwiki::sqliteexecute("drop table if exists swdata");
I get the error HP Fatal error: Call to undefined method scraperwiki::sqliteexecute() in /home/code/scraper on line 7
Is there a file I need to include or should this work?
Thanks.
That should "just work". Maybe one of the ScraperWiki guys @drj11 @pwaller @frabcus might have an idea.
It's not deployed yet.
Code mostly taken from the ScraperWiki Classic scraperwiki.php module.
Not sure how to test it though!! I can't even get
scraperwiki::save()
to work in the Code in your browser tool.