We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import scraperwiki print scraperwiki.sqlite.get_var('jam') scraperwiki.sqlite.save_var('bacon',12) print scraperwiki.sqlite.get_var('bacon')
If run once, correctly gives:
None 12
If run twice, fails with:
Traceback (most recent call last): File "test.py", line 3, in <module> print scraperwiki.sqlite.get_var('jam') File "/usr/local/lib/python2.7/dist-packages/scraperwiki/sqlite.py", line 73, in get_var dt.execute(u"CREATE TABLE %s (`value` blob, `type` text, `key` text PRIMARY KEY)" % dt._DumpTruck__vars_table, commit = False) File "/usr/local/lib/python2.7/dist-packages/dumptruck/dumptruck.py", line 115, in execute self.cursor.execute(sql, *args) sqlite3.OperationalError: table _dumptruckvars already exists
The text was updated successfully, but these errors were encountered:
fixed? in 24944dd
Sorry, something went wrong.
No branches or pull requests
If run once, correctly gives:
If run twice, fails with:
The text was updated successfully, but these errors were encountered: