Skip to content

Instantly share code, notes, and snippets.

@adizhol
adizhol / fsql.py
Created February 12, 2018 09:58 — forked from jcarbaugh/fsql.py
convert a MySQL dump into SQLite
#!/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()