Skip to content

Instantly share code, notes, and snippets.

View LeFanch's full-sized avatar

Fañch LeFanch

View GitHub Profile
@jcarbaugh
jcarbaugh / fsql.py
Created April 23, 2009 18:12
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()
@thread13
thread13 / fsql.py
Last active October 14, 2023 11:38 — forked from jcarbaugh/fsql.py
#!/usr/bin/env python
# [ https://gist.github.com/jcarbaugh/100651/download# ]
# Convert a mysql dump into a sqlite-compatible format.
# I wrote this for just one script... no guarantees that it will work with others...
# python fsql.py < mysqldump.sql > readyforsqlite.sql
import re
import sys