scraperwiki / scraperwiki-php

Non-packaged PHP libraries that ScraperWiki Classic uses
4 stars 5 forks source link

sqliteexecute() and sqlitecommit() commands #4

Closed zarino closed 10 years ago

zarino commented 10 years ago

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.

zarino commented 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.

webwithin commented 10 years ago

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.

zarino commented 10 years ago

That should "just work". Maybe one of the ScraperWiki guys @drj11 @pwaller @frabcus might have an idea.

drj11 commented 10 years ago

It's not deployed yet.