This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Script to open a sqlite3 database and dump all user tables to CSV files. | |
Tested in Unicode-rich environment. | |
Usage: | |
dumpsqlite3tocsv foo.db | |
""" | |
import sqlite3, csv, codecs, cStringIO, os, os.path |