Skip to content

Instantly share code, notes, and snippets.

@adizhol
adizhol / fsql.py
Created Feb 12, 2018 — forked from jcarbaugh/fsql.py
convert a MySQL dump into SQLite
View fsql.py
#!/usr/bin/env python
# Convert a mysql dump into a sqlite-compatible format.
# I wrote this for just one script... no guarantess that it will work with others...
# python fsql.py < mysqldump.sql > readyforsqlite.sql
import re
import sys
content = sys.stdin.read()