From 84c37038181c538386a5f152dc486f8a8664a7c0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 28 Aug 2016 13:08:18 +0300 Subject: [PATCH] Started documentation --- README.txt | 2 ++ docs/index.rst | 39 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/README.txt b/README.txt index a70e970..64b1299 100644 --- a/README.txt +++ b/README.txt @@ -7,3 +7,5 @@ convert mysqldump (especially with extended INSERT syntax) to standard SQL to load at least to PostgreSQL or SQLite. Uses sqlparse to parse SQL. + +The program is in its initial phase and currently cannot do much. diff --git a/docs/index.rst b/docs/index.rst index 01e8420..06beefe 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -6,11 +6,31 @@ Welcome to mysql2sql's documentation! ===================================== -Contents: +This is mysql2sql, a mysql to sql converter. It is primary intended to +convert mysqldump (especially with extended INSERT syntax) to standard +SQL to load at least to PostgreSQL or SQLite. -.. toctree:: - :maxdepth: 2 +It uses `sqlparse `_ to parse +SQL. +The program is in its initial phase and currently cannot do much. + +.. highlight:: none + +Command line +------------ + +mysql-to-sql.py +~~~~~~~~~~~~~~~ + +Usage:: + + mysql-to-sql.py [-i infile] [-o outfile] + +Options:: + + -i, --infile infile Input file, stdin if absent + -o, --outfile outfile Output file, stdout if absent Indices and tables @@ -20,3 +40,16 @@ Indices and tables * :ref:`modindex` * :ref:`search` + +Credits +======= + +Created by Oleg Broytman . + +Copyright (C) 2016 PhiloSoft Design. + + +License +======= + +GPL. -- 2.39.2