]> git.phdru.name Git - sqlconvert.git/log
sqlconvert.git
8 years agoVersion 0.0.3: Rename the project: mysql2py -> sqlconvert 0.0.3
Oleg Broytman [Sun, 4 Sep 2016 11:24:26 +0000 (14:24 +0300)]
Version 0.0.3: Rename the project: mysql2py -> sqlconvert

8 years agoFix docs after split index -> mysql2sql
Oleg Broytman [Sun, 4 Sep 2016 11:22:51 +0000 (14:22 +0300)]
Fix docs after split index -> mysql2sql

8 years agoRename target 'html' to 'docs'
Oleg Broytman [Sun, 4 Sep 2016 11:18:52 +0000 (14:18 +0300)]
Rename target 'html' to 'docs'

8 years agoRename mysql2sql -> sqlconvert
Oleg Broytman [Sun, 4 Sep 2016 11:16:36 +0000 (14:16 +0300)]
Rename mysql2sql -> sqlconvert

8 years agoVersion 0.0.2: Rename mysql-to-sql.py -> mysql2py 0.0.2
Oleg Broytman [Sat, 3 Sep 2016 20:41:52 +0000 (23:41 +0300)]
Version 0.0.2: Rename mysql-to-sql.py -> mysql2py

8 years agoDisplay progress bar
Oleg Broytman [Sat, 3 Sep 2016 20:40:29 +0000 (23:40 +0300)]
Display progress bar

8 years agoRename mysql-to-sql.py -> mysql2py
Oleg Broytman [Sat, 3 Sep 2016 20:22:58 +0000 (23:22 +0300)]
Rename mysql-to-sql.py -> mysql2py

8 years agoTODO: Progress bar
Oleg Broytman [Sat, 3 Sep 2016 20:17:17 +0000 (23:17 +0300)]
TODO: Progress bar

8 years agoUpdate TODO
Oleg Broytman [Sat, 3 Sep 2016 18:34:55 +0000 (21:34 +0300)]
Update TODO

8 years agoFix flake8 warning
Oleg Broytman [Sat, 3 Sep 2016 16:08:01 +0000 (19:08 +0300)]
Fix flake8 warning

8 years agoVersion 0.0.1: First release. Setup, tests and docs infrastructure 0.0.1
Oleg Broytman [Sat, 3 Sep 2016 16:00:35 +0000 (19:00 +0300)]
Version 0.0.1: First release. Setup, tests and docs infrastructure

8 years agoFix vim script
Oleg Broytman [Sat, 3 Sep 2016 16:00:19 +0000 (19:00 +0300)]
Fix vim script

8 years agoMinor fix in docs
Oleg Broytman [Sat, 3 Sep 2016 15:56:00 +0000 (18:56 +0300)]
Minor fix in docs

8 years agoFix unicode test for Py3
Oleg Broytman [Sat, 3 Sep 2016 15:55:37 +0000 (18:55 +0300)]
Fix unicode test for Py3

8 years agoUse sphinx.ext.viewcode to include module's code
Oleg Broytman [Sat, 3 Sep 2016 15:50:32 +0000 (18:50 +0300)]
Use sphinx.ext.viewcode to include module's code

8 years agoRequire m_lib
Oleg Broytman [Sat, 3 Sep 2016 15:48:44 +0000 (18:48 +0300)]
Require m_lib

Require sqlparse instead of install_requires.

8 years agogenapidocs: replace short options with long ones
Oleg Broytman [Sat, 3 Sep 2016 15:48:01 +0000 (18:48 +0300)]
genapidocs: replace short options with long ones

8 years agoUse encoding (default is utf-8) and unicode
Oleg Broytman [Fri, 2 Sep 2016 22:26:02 +0000 (01:26 +0300)]
Use encoding (default is utf-8) and unicode

8 years agoChange arguments handling
Oleg Broytman [Fri, 2 Sep 2016 21:16:02 +0000 (00:16 +0300)]
Change arguments handling

Allow `-` to name stdin or stdout.
Input file is always the first argument, no need to use option `-i`.
Output file can be named with `-o` or as the second argument
but not both. Option `-o` is useful when there is no input file (input
is redirected, for example: `mysql-to-sql.py -o out.sql < in.sql`).

8 years agoPrint error message
Oleg Broytman [Fri, 2 Sep 2016 20:59:08 +0000 (23:59 +0300)]
Print error message

8 years agoRadically simplify MANIFEST.in by using global-include
Oleg Broytman [Sun, 28 Aug 2016 15:05:01 +0000 (18:05 +0300)]
Radically simplify MANIFEST.in by using global-include

8 years agoInclude API docs
Oleg Broytman [Sun, 28 Aug 2016 10:16:35 +0000 (13:16 +0300)]
Include API docs

8 years agoStarted documentation
Oleg Broytman [Sun, 28 Aug 2016 10:08:18 +0000 (13:08 +0300)]
Started documentation

8 years agoFix a bug: do not add additional newlines
Oleg Broytman [Sat, 27 Aug 2016 19:19:05 +0000 (22:19 +0300)]
Fix a bug: do not add additional newlines

As the package doesn't strip newlines from the input string
(to preserve original newlines) there is no need to separate lines
with additional newlines.

8 years agoAdd requirements_docs.txt
Oleg Broytman [Sat, 27 Aug 2016 16:55:08 +0000 (19:55 +0300)]
Add requirements_docs.txt

8 years agoAdd script mysql-to-sql.py
Oleg Broytman [Sat, 27 Aug 2016 14:39:20 +0000 (17:39 +0300)]
Add script mysql-to-sql.py

Cannot be name mysql2sql.py to avoid collision with the package.

8 years agofixup! Rename scripts -> demo; move sample.sql into demo
Oleg Broytman [Sat, 27 Aug 2016 14:08:17 +0000 (17:08 +0300)]
fixup! Rename scripts -> demo; move sample.sql into demo

8 years agoInclude ez_setup.py into sdist
Oleg Broytman [Sat, 27 Aug 2016 13:49:00 +0000 (16:49 +0300)]
Include ez_setup.py into sdist

8 years agoRename scripts -> demo; move sample.sql into demo
Oleg Broytman [Sat, 27 Aug 2016 13:43:16 +0000 (16:43 +0300)]
Rename scripts -> demo; move sample.sql into demo

8 years agoFix Python3 compatibility
Oleg Broytman [Sat, 27 Aug 2016 13:41:32 +0000 (16:41 +0300)]
Fix Python3 compatibility

8 years agoCollect lines and reparse until the last statement is complete
Oleg Broytman [Fri, 26 Aug 2016 21:48:02 +0000 (00:48 +0300)]
Collect lines and reparse until the last statement is complete

8 years agoProcess input stream line by line
Oleg Broytman [Wed, 24 Aug 2016 14:44:41 +0000 (17:44 +0300)]
Process input stream line by line

8 years agoSimplify test: use 'for' loop to loop over generator
Oleg Broytman [Wed, 24 Aug 2016 14:42:37 +0000 (17:42 +0300)]
Simplify test: use 'for' loop to loop over generator

8 years agoAdd sample and scripts to sdist
Oleg Broytman [Tue, 23 Aug 2016 21:59:57 +0000 (00:59 +0300)]
Add sample and scripts to sdist

8 years agoA trailing space added by distutils
Oleg Broytman [Tue, 23 Aug 2016 20:19:47 +0000 (23:19 +0300)]
A trailing space added by distutils

8 years agoAllow whitespaces and comments after the last statement
Oleg Broytman [Tue, 23 Aug 2016 19:57:30 +0000 (22:57 +0300)]
Allow whitespaces and comments after the last statement

8 years agoGroup statements separated by semicolons
Oleg Broytman [Sun, 21 Aug 2016 08:09:55 +0000 (11:09 +0300)]
Group statements separated by semicolons

8 years agoExclude ez_setup.py from flake8 testing
Oleg Broytman [Sun, 21 Aug 2016 08:08:44 +0000 (11:08 +0300)]
Exclude ez_setup.py from flake8 testing

8 years agoRename scripts
Oleg Broytman [Sun, 21 Aug 2016 08:04:35 +0000 (11:04 +0300)]
Rename scripts

8 years agoRefactor identical code in the script
Oleg Broytman [Sun, 14 Aug 2016 12:04:58 +0000 (15:04 +0300)]
Refactor identical code in the script

8 years agoUse .flatten() to avoid recursion
Oleg Broytman [Sun, 14 Aug 2016 12:02:48 +0000 (15:02 +0300)]
Use .flatten() to avoid recursion

8 years agoSimplify get_tokens_str; rename get_tokens_str -> tlist2str
Oleg Broytman [Sun, 14 Aug 2016 11:59:11 +0000 (14:59 +0300)]
Simplify get_tokens_str; rename get_tokens_str -> tlist2str

Use .flatten() and avoid StringIO - make the output string directly.

8 years agoUse token_list.flatten() to simplify tree traversing
Oleg Broytman [Sun, 14 Aug 2016 11:55:59 +0000 (14:55 +0300)]
Use token_list.flatten() to simplify tree traversing

8 years agoFix the test
Oleg Broytman [Thu, 11 Aug 2016 07:18:20 +0000 (10:18 +0300)]
Fix the test

8 years agoSimplify print_tokens()
Oleg Broytman [Thu, 11 Aug 2016 07:17:56 +0000 (10:17 +0300)]
Simplify print_tokens()

8 years agoRename mk-git-alias -> mk-git-aliases, add commit-with-message alias
Oleg Broytman [Wed, 10 Aug 2016 18:02:07 +0000 (21:02 +0300)]
Rename mk-git-alias -> mk-git-aliases, add commit-with-message alias

8 years agoRename tag.vim -> get-commit-message.vim
Oleg Broytman [Wed, 10 Aug 2016 17:38:22 +0000 (20:38 +0300)]
Rename tag.vim -> get-commit-message.vim

8 years agoRename mk-tag-alias -> mk-git-alias
Oleg Broytman [Wed, 10 Aug 2016 17:35:26 +0000 (20:35 +0300)]
Rename mk-tag-alias -> mk-git-alias

8 years agoRename tag-with-version to tag-with-message
Oleg Broytman [Wed, 10 Aug 2016 17:30:41 +0000 (20:30 +0300)]
Rename tag-with-version to tag-with-message

8 years agoAdd a demo script that prints queries from a file
Oleg Broytman [Fri, 5 Aug 2016 16:27:44 +0000 (19:27 +0300)]
Add a demo script that prints queries from a file

Also add a sample file with queries.

8 years agoFind an error in parse tree
Oleg Broytman [Thu, 4 Aug 2016 17:01:09 +0000 (20:01 +0300)]
Find an error in parse tree

8 years agoRefactor 'else if' to 'elif'
Oleg Broytman [Thu, 4 Aug 2016 17:00:42 +0000 (20:00 +0300)]
Refactor 'else if' to 'elif'

8 years agoParse command-line queries separately
Oleg Broytman [Wed, 3 Aug 2016 20:49:42 +0000 (23:49 +0300)]
Parse command-line queries separately

8 years agoParse many queries from command line
Oleg Broytman [Wed, 3 Aug 2016 16:05:51 +0000 (19:05 +0300)]
Parse many queries from command line

8 years agoDo not output statement separators in print_tokens
Oleg Broytman [Wed, 3 Aug 2016 16:01:22 +0000 (19:01 +0300)]
Do not output statement separators in print_tokens

8 years agoMinor refactoring
Oleg Broytman [Wed, 3 Aug 2016 15:57:34 +0000 (18:57 +0300)]
Minor refactoring

8 years agoPass setup.py install option --optimize
Oleg Broytman [Wed, 3 Aug 2016 14:22:25 +0000 (17:22 +0300)]
Pass setup.py install option --optimize

8 years agoMake tag-with-version alias
Oleg Broytman [Tue, 2 Aug 2016 16:21:23 +0000 (19:21 +0300)]
Make tag-with-version alias

8 years agoUpgrade ez_setup.py
Oleg Broytman [Sat, 30 Jul 2016 22:55:31 +0000 (01:55 +0300)]
Upgrade ez_setup.py

8 years agoRequire argparse for python 2.6
Oleg Broytman [Fri, 29 Jul 2016 20:17:54 +0000 (23:17 +0300)]
Require argparse for python 2.6

8 years agoUse ._pprint_tree() instead of print_subtree()
Oleg Broytman [Fri, 29 Jul 2016 06:30:38 +0000 (09:30 +0300)]
Use ._pprint_tree() instead of print_subtree()

8 years agoDeclare Python 3 compatibility
Oleg Broytman [Thu, 28 Jul 2016 22:50:49 +0000 (01:50 +0300)]
Declare Python 3 compatibility

8 years agoUse except SystemExit as msg for Python 3 compatibility
Oleg Broytman [Thu, 28 Jul 2016 22:50:11 +0000 (01:50 +0300)]
Use except SystemExit as msg for Python 3 compatibility

8 years agoExplain Ignore: E402
Oleg Broytman [Tue, 26 Jul 2016 19:47:05 +0000 (22:47 +0300)]
Explain Ignore: E402

8 years agoChange classifiers: intended audience are developers
Oleg Broytman [Mon, 25 Jul 2016 21:34:58 +0000 (00:34 +0300)]
Change classifiers: intended audience are developers

8 years agoUse print function for Python 3 compatibility
Oleg Broytman [Mon, 25 Jul 2016 21:34:50 +0000 (00:34 +0300)]
Use print function for Python 3 compatibility

8 years agoAdd the first test
Oleg Broytman [Sat, 23 Jul 2016 03:18:51 +0000 (06:18 +0300)]
Add the first test

8 years agoOutput tokens to an output stream instead of printing
Oleg Broytman [Sat, 23 Jul 2016 03:17:22 +0000 (06:17 +0300)]
Output tokens to an output stream instead of printing

Convert a list of tokens tokens to a string.

8 years agoAdd some initial code and a small demo script
Oleg Broytman [Sat, 23 Jul 2016 03:06:19 +0000 (06:06 +0300)]
Add some initial code and a small demo script

8 years agoRequire sqlparse
Oleg Broytman [Sat, 23 Jul 2016 00:18:04 +0000 (03:18 +0300)]
Require sqlparse

8 years agoBetter explain the project
Oleg Broytman [Sat, 23 Jul 2016 00:17:27 +0000 (03:17 +0300)]
Better explain the project

8 years agoFix flake8 warning
Oleg Broytman [Sat, 23 Jul 2016 00:17:00 +0000 (03:17 +0300)]
Fix flake8 warning

Fix E402 module level import not at top of file.

8 years agoInitial commit - created the project
Oleg Broytman [Fri, 22 Jul 2016 16:34:14 +0000 (19:34 +0300)]
Initial commit - created the project