1 .. mysql2sql documentation master file, created by
2 sphinx-quickstart on Fri Jul 22 19:32:24 2016.
3 You can adapt this file completely to your liking, but it should at least
4 contain the root `toctree` directive.
6 Welcome to mysql2sql's documentation!
7 =====================================
9 This is mysql2sql, a mysql to sql converter. It is primary intended to
10 convert mysqldump (especially with extended INSERT syntax) to standard
11 SQL to load at least to PostgreSQL or SQLite.
13 It uses `sqlparse <https://github.com/andialbrecht/sqlparse>`_ to parse
16 The program is in its initial phase and currently cannot do much.
28 mysql-to-sql.py [infile] [[-o] outfile]
32 infile Input file, stdin if absent or '-'
33 -o, --outfile outfile Output file, stdout if absent or '-'
35 Option `-o` is useful when infile is absent (input is redirected), for
38 mysql-to-sql.py -o outfile.sql < infile.sql
39 cat infile.sql | mysql-to-sql.py -o outfile.sql
41 But of course it simple can be::
43 mysql-to-sql.py - outfile.sql < infile.sql
44 cat infile.sql | mysql-to-sql.py - outfile.sql
51 * `<api/modules.html>`_
58 Created by Oleg Broytman <phd@phdru.name>.
60 Copyright (C) 2016 PhiloSoft Design.