]> git.phdru.name Git - sqlconvert.git/log
sqlconvert.git
7 years ago[mysql2sql] Show the name of the file being converted
Oleg Broytman [Fri, 14 Apr 2017 20:03:27 +0000 (23:03 +0300)]
[mysql2sql] Show the name of the file being converted

7 years agoTODO: Publish at GitHub and PyPI, test at Travis
Oleg Broytman [Sun, 19 Mar 2017 17:00:40 +0000 (20:00 +0300)]
TODO: Publish at GitHub and PyPI, test at Travis

7 years agoConvert extended INSERTs to plain INSERTs: done!
Oleg Broytman [Sun, 19 Mar 2017 16:58:10 +0000 (19:58 +0300)]
Convert extended INSERTs to plain INSERTs: done!

7 years agoInclude demo.sql, test.out and tox.ini into sdist
Oleg Broytman [Sun, 19 Mar 2017 16:48:39 +0000 (19:48 +0300)]
Include demo.sql, test.out and tox.ini into sdist

7 years agoVersion 0.1.0: Split extended INSERTs (mysql2sql) 0.1.0
Oleg Broytman [Sun, 19 Mar 2017 16:42:36 +0000 (19:42 +0300)]
Version 0.1.0: Split extended INSERTs (mysql2sql)

7 years agoTest mysql2sql with tox
Oleg Broytman [Sun, 19 Mar 2017 16:41:33 +0000 (19:41 +0300)]
Test mysql2sql with tox

7 years agoRebuild docs in a venv using system Sphinx
Oleg Broytman [Sun, 19 Mar 2017 16:22:11 +0000 (19:22 +0300)]
Rebuild docs in a venv using system Sphinx

7 years agoUpdate docs: mysql2sql can now split extended INSERTs
Oleg Broytman [Sun, 19 Mar 2017 16:21:18 +0000 (19:21 +0300)]
Update docs: mysql2sql can now split extended INSERTs

7 years agoFix mysql2sql: do not mix output and messages
Oleg Broytman [Sun, 19 Mar 2017 16:19:34 +0000 (19:19 +0300)]
Fix mysql2sql: do not mix output and messages

Inhibit progress bar and log messages if the output is stdout.

7 years agoFix mysql2sql: args.pg
Oleg Broytman [Sun, 19 Mar 2017 16:19:00 +0000 (19:19 +0300)]
Fix mysql2sql: args.pg

7 years agoSeparate split INSERTs with newlines
Oleg Broytman [Sun, 19 Mar 2017 16:17:54 +0000 (19:17 +0300)]
Separate split INSERTs with newlines

7 years agoUpdate extended INSERTs in demo.sql
Oleg Broytman [Sun, 19 Mar 2017 16:17:00 +0000 (19:17 +0300)]
Update extended INSERTs in demo.sql

7 years agoFix: test if token is an instance of Comment
Oleg Broytman [Sun, 19 Mar 2017 16:16:11 +0000 (19:16 +0300)]
Fix: test if token is an instance of Comment

7 years agoCalculate version/revision from sqlconvert.__version__
Oleg Broytman [Sun, 19 Mar 2017 03:36:26 +0000 (06:36 +0300)]
Calculate version/revision from sqlconvert.__version__

7 years agoVersion 0.0.8: Split extended INSERTs 0.0.8
Oleg Broytman [Sat, 18 Mar 2017 21:07:50 +0000 (00:07 +0300)]
Version 0.0.8: Split extended INSERTs

7 years agoSplit extended INSERTs
Oleg Broytman [Fri, 17 Mar 2017 16:19:41 +0000 (19:19 +0300)]
Split extended INSERTs

7 years agoVarious minor updates in docs
Oleg Broytman [Sun, 12 Mar 2017 17:53:46 +0000 (20:53 +0300)]
Various minor updates in docs

7 years agoFix pip's --install-option: --compile is default and I prefer -O2
Oleg Broytman [Sun, 12 Mar 2017 02:55:18 +0000 (05:55 +0300)]
Fix pip's --install-option: --compile is default and I prefer -O2

7 years agoImplement is_insert()
Oleg Broytman [Sat, 11 Mar 2017 20:42:01 +0000 (23:42 +0300)]
Implement is_insert()

7 years agoRefactor is_comment_or_space
Oleg Broytman [Sat, 11 Mar 2017 20:28:24 +0000 (23:28 +0300)]
Refactor is_comment_or_space

7 years agoRemove deprecated ez_setup.py
Oleg Broytman [Mon, 30 Jan 2017 10:46:03 +0000 (13:46 +0300)]
Remove deprecated ez_setup.py

7 years agoUpgrade ez_setup.py
Oleg Broytman [Wed, 23 Nov 2016 17:01:07 +0000 (20:01 +0300)]
Upgrade ez_setup.py

7 years agoDrop test DB if it persisted from the previous run
Oleg Broytman [Sun, 13 Nov 2016 20:12:56 +0000 (23:12 +0300)]
Drop test DB if it persisted from the previous run

7 years agoSet toxworkdir to ~/.tox
Oleg Broytman [Sat, 1 Oct 2016 22:34:06 +0000 (01:34 +0300)]
Set toxworkdir to ~/.tox

7 years agoOmit trivial __init__.py and __version__.py from test coverage
Oleg Broytman [Sat, 1 Oct 2016 21:14:15 +0000 (00:14 +0300)]
Omit trivial __init__.py and __version__.py from test coverage

7 years agoAdd a test for is_newline_statement()
Oleg Broytman [Sat, 1 Oct 2016 21:13:45 +0000 (00:13 +0300)]
Add a test for is_newline_statement()

7 years agoSplit test_process_tokens.py -> test_process_mysql.py
Oleg Broytman [Sat, 1 Oct 2016 21:05:15 +0000 (00:05 +0300)]
Split test_process_tokens.py -> test_process_mysql.py

Separate generic tests from MySQL-specific.

7 years agoTest print_tokens() with encoding
Oleg Broytman [Fri, 30 Sep 2016 19:17:28 +0000 (22:17 +0300)]
Test print_tokens() with encoding

7 years agoDocument that the program requotes names
Oleg Broytman [Fri, 30 Sep 2016 19:14:02 +0000 (22:14 +0300)]
Document that the program requotes names

7 years agoReorder processing
Oleg Broytman [Fri, 30 Sep 2016 19:12:20 +0000 (22:12 +0300)]
Reorder processing

7 years agoMake process_statement() a generator
Oleg Broytman [Wed, 28 Sep 2016 23:47:30 +0000 (02:47 +0300)]
Make process_statement() a generator

Prepare for process_statement() to yield a list of statements:
extended INSERT will be split into a list of plain INSERTs.

7 years agoClean up StatementGrouper on close
Oleg Broytman [Wed, 28 Sep 2016 23:38:55 +0000 (02:38 +0300)]
Clean up StatementGrouper on close

7 years agoUse `return` instead `raise StopIteration`
Oleg Broytman [Wed, 28 Sep 2016 23:38:03 +0000 (02:38 +0300)]
Use `return` instead `raise StopIteration`

7 years agoIgnore coverage data and reports
Oleg Broytman [Wed, 28 Sep 2016 16:58:29 +0000 (19:58 +0300)]
Ignore coverage data and reports

7 years agoExtend demo.sql: add extended INSERTs with and w/o columns list
Oleg Broytman [Wed, 28 Sep 2016 16:06:58 +0000 (19:06 +0300)]
Extend demo.sql: add extended INSERTs with and w/o columns list

7 years agoDone: convert string escapes
Oleg Broytman [Tue, 27 Sep 2016 19:50:27 +0000 (22:50 +0300)]
Done: convert string escapes

7 years agoVersion 0.0.7: Change quoting style to MySQL, PostgreSQL or SQLite 0.0.7
Oleg Broytman [Mon, 26 Sep 2016 22:00:43 +0000 (01:00 +0300)]
Version 0.0.7: Change quoting style to MySQL, PostgreSQL or SQLite

7 years agoUse test coverage in tox.ini
Oleg Broytman [Mon, 26 Sep 2016 21:57:33 +0000 (00:57 +0300)]
Use test coverage in tox.ini

7 years agoAdd a test for print_tokens()
Oleg Broytman [Mon, 26 Sep 2016 21:54:23 +0000 (00:54 +0300)]
Add a test for print_tokens()

7 years agoRename test_tokens.py -> test_process_tokens.py
Oleg Broytman [Mon, 26 Sep 2016 21:53:28 +0000 (00:53 +0300)]
Rename test_tokens.py -> test_process_tokens.py

Merge test_stgrouper.py into test_process_tokens.py.

7 years agoFix a bug: assign buffer even if encoding is None
Oleg Broytman [Mon, 26 Sep 2016 21:50:29 +0000 (00:50 +0300)]
Fix a bug: assign buffer even if encoding is None

7 years agoChange quoting style to MySQL, PostgreSQL or SQLite
Oleg Broytman [Mon, 26 Sep 2016 21:32:48 +0000 (00:32 +0300)]
Change quoting style to MySQL, PostgreSQL or SQLite

7 years agoVersion 0.0.6: string (un)escaping, tests with Pg/SQLite 0.0.6
Oleg Broytman [Sun, 25 Sep 2016 15:36:36 +0000 (18:36 +0300)]
Version 0.0.6: string (un)escaping, tests with Pg/SQLite

7 years agoUpdate docs
Oleg Broytman [Sun, 25 Sep 2016 15:28:52 +0000 (18:28 +0300)]
Update docs

7 years agoAdd tests for SQLite
Oleg Broytman [Sun, 25 Sep 2016 15:25:49 +0000 (18:25 +0300)]
Add tests for SQLite

7 years agoUse SQLObject for string quoting
Oleg Broytman [Sun, 25 Sep 2016 15:14:47 +0000 (18:14 +0300)]
Use SQLObject for string quoting

7 years agoUnescape all known escapes
Oleg Broytman [Sun, 25 Sep 2016 14:46:50 +0000 (17:46 +0300)]
Unescape all known escapes

7 years agoDo not test statements in StatementGrouper
Oleg Broytman [Sun, 25 Sep 2016 01:36:23 +0000 (04:36 +0300)]
Do not test statements in StatementGrouper

StatementGrouper simply raises StopIteration if there are no statements.

7 years agoDo not clean up: rm doesn't work
Oleg Broytman [Sun, 25 Sep 2016 01:18:12 +0000 (04:18 +0300)]
Do not clean up: rm doesn't work

Well, it works but only in the virtual environment
while we need to clean up the root directory.

7 years agoGlobally skip a module that requires Postgres connection
Oleg Broytman [Sun, 25 Sep 2016 01:13:18 +0000 (04:13 +0300)]
Globally skip a module that requires Postgres connection

7 years agoExclude tests/conftest.py from flake8 tests with directive
Oleg Broytman [Sun, 25 Sep 2016 01:02:12 +0000 (04:02 +0300)]
Exclude tests/conftest.py from flake8 tests with directive

7 years agoRun flake8 from root to test docs and scripts
Oleg Broytman [Sat, 24 Sep 2016 23:19:37 +0000 (02:19 +0300)]
Run flake8 from root to test docs and scripts

Exclude .tox virtual environments.

7 years agoAdd a test for unescaped strings for Postgres
Oleg Broytman [Sat, 24 Sep 2016 20:23:35 +0000 (23:23 +0300)]
Add a test for unescaped strings for Postgres

Use SQLObject for testing.

7 years agoRemove unused py.test
Oleg Broytman [Sat, 24 Sep 2016 05:01:20 +0000 (08:01 +0300)]
Remove unused py.test

7 years agoSimplify tox.ini: call pytest with the current python
Oleg Broytman [Sat, 24 Sep 2016 00:01:38 +0000 (03:01 +0300)]
Simplify tox.ini: call pytest with the current python

7 years agoFix copy/paste in .gitignore
Oleg Broytman [Fri, 23 Sep 2016 23:58:20 +0000 (02:58 +0300)]
Fix copy/paste in .gitignore

7 years agoExtend .gitignore
Oleg Broytman [Fri, 23 Sep 2016 22:46:48 +0000 (01:46 +0300)]
Extend .gitignore

7 years agoMinor refactoring of MANIFEST.in
Oleg Broytman [Fri, 23 Sep 2016 22:41:23 +0000 (01:41 +0300)]
Minor refactoring of MANIFEST.in

7 years agoIgnore .cache and .tox directories only at the top
Oleg Broytman [Wed, 21 Sep 2016 22:34:42 +0000 (01:34 +0300)]
Ignore .cache and .tox directories only at the top

7 years agoUse coverage and tox for testing
Oleg Broytman [Tue, 20 Sep 2016 23:45:58 +0000 (02:45 +0300)]
Use coverage and tox for testing

7 years agoFix scripts in setup.py
Oleg Broytman [Tue, 20 Sep 2016 23:44:06 +0000 (02:44 +0300)]
Fix scripts in setup.py

7 years agoAdd test for converting \' to ''
Oleg Broytman [Sat, 17 Sep 2016 16:00:52 +0000 (19:00 +0300)]
Add test for converting \' to ''

7 years agoRemove classes from tests
Oleg Broytman [Sat, 17 Sep 2016 15:56:35 +0000 (18:56 +0300)]
Remove classes from tests

Remove leftovers from unittest, completely switch to pytest.

7 years agoRemove mysql-specific requote_names from StatementGrouper's test
Oleg Broytman [Sat, 17 Sep 2016 15:53:41 +0000 (18:53 +0300)]
Remove mysql-specific requote_names from StatementGrouper's test

7 years agoUse pytest for testing
Oleg Broytman [Sun, 11 Sep 2016 18:37:36 +0000 (21:37 +0300)]
Use pytest for testing

7 years agoFix misspelling: mysq2sql -> mysql2sql
Oleg Broytman [Sun, 11 Sep 2016 17:16:18 +0000 (20:16 +0300)]
Fix misspelling: mysq2sql -> mysql2sql

7 years agoFix minor misspellings in docs
Oleg Broytman [Sun, 11 Sep 2016 17:16:18 +0000 (20:16 +0300)]
Fix minor misspellings in docs

7 years agoAdd README.html for gitweb
Oleg Broytman [Sun, 11 Sep 2016 17:05:51 +0000 (20:05 +0300)]
Add README.html for gitweb

7 years agoTODO: Add tests for Postgres and SQLite
Oleg Broytman [Sat, 10 Sep 2016 17:49:05 +0000 (20:49 +0300)]
TODO: Add tests for Postgres and SQLite

7 years agoUnescape strings
Oleg Broytman [Sat, 10 Sep 2016 17:35:02 +0000 (20:35 +0300)]
Unescape strings

7 years agoRename remove_directives -> remove_directive_tokens
Oleg Broytman [Sat, 10 Sep 2016 17:05:22 +0000 (20:05 +0300)]
Rename remove_directives -> remove_directive_tokens

7 years agoCondense a sequence of newlines after a /*! directive */;
Oleg Broytman [Thu, 8 Sep 2016 22:37:06 +0000 (01:37 +0300)]
Condense a sequence of newlines after a /*! directive */;

7 years agoDeclare development status Pre-Alpha
Oleg Broytman [Thu, 8 Sep 2016 14:59:49 +0000 (17:59 +0300)]
Declare development status Pre-Alpha

7 years agoVersion 0.0.5: Remove /*! directives */; and newlines after them 0.0.5
Oleg Broytman [Wed, 7 Sep 2016 19:57:00 +0000 (22:57 +0300)]
Version 0.0.5: Remove /*! directives */; and newlines after them

7 years agoFix flake8 warning: remove unused import
Oleg Broytman [Wed, 7 Sep 2016 19:52:11 +0000 (22:52 +0300)]
Fix flake8 warning: remove unused import

7 years agoSkip semicolons and newlines /*! directives */;
Oleg Broytman [Wed, 7 Sep 2016 19:26:13 +0000 (22:26 +0300)]
Skip semicolons and newlines /*! directives */;

7 years agoFix: flush buffer and outfile
Oleg Broytman [Wed, 7 Sep 2016 19:48:38 +0000 (22:48 +0300)]
Fix: flush buffer and outfile

7 years agoMake begin/end separators in demo scripts more evident
Oleg Broytman [Wed, 7 Sep 2016 19:24:32 +0000 (22:24 +0300)]
Make begin/end separators in demo scripts more evident

7 years agoAdd demo-process.py
Oleg Broytman [Mon, 5 Sep 2016 21:29:33 +0000 (00:29 +0300)]
Add demo-process.py

7 years agoJoin demo scripts; add argparse parameters parsing
Oleg Broytman [Mon, 5 Sep 2016 20:57:41 +0000 (23:57 +0300)]
Join demo scripts; add argparse parameters parsing

Join group-{file,sql}.py into demo-group.py
     parse-{file,sql}.py into demo-parse.py.

7 years agoRemove processing from demo scripts
Oleg Broytman [Mon, 5 Sep 2016 20:17:42 +0000 (23:17 +0300)]
Remove processing from demo scripts

7 years agoAdd a semicolon and a newline after directive
Oleg Broytman [Mon, 5 Sep 2016 19:18:29 +0000 (22:18 +0300)]
Add a semicolon and a newline after directive

7 years agoRename sample.sql -> demo.sql
Oleg Broytman [Mon, 5 Sep 2016 19:16:25 +0000 (22:16 +0300)]
Rename sample.sql -> demo.sql

7 years agoSet encoding to utf-8 for demo scripts
Oleg Broytman [Mon, 5 Sep 2016 19:15:38 +0000 (22:15 +0300)]
Set encoding to utf-8 for demo scripts

7 years agoTODO: Fix semicolons and newlines after /*! directives */
Oleg Broytman [Sun, 4 Sep 2016 19:13:46 +0000 (22:13 +0300)]
TODO: Fix semicolons and newlines after /*! directives */

7 years agoTODO: Remove /*! directives */ - done!
Oleg Broytman [Sun, 4 Sep 2016 14:54:43 +0000 (17:54 +0300)]
TODO: Remove /*! directives */ - done!

7 years agoUpdate docs: mention /*! directives */
Oleg Broytman [Sun, 4 Sep 2016 14:46:58 +0000 (17:46 +0300)]
Update docs: mention /*! directives */

7 years agoAdd MySQL-specific remove_directives() and process_statement() 0.0.4
Oleg Broytman [Sun, 4 Sep 2016 14:29:40 +0000 (17:29 +0300)]
Add MySQL-specific remove_directives() and process_statement()

7 years agoMove requote_names from process_tokens.py to process_mysql.py
Oleg Broytman [Sun, 4 Sep 2016 13:36:12 +0000 (16:36 +0300)]
Move requote_names from process_tokens.py to process_mysql.py

7 years agoInclude scripts/mysql2sql into sdist
Oleg Broytman [Sun, 4 Sep 2016 11:28:20 +0000 (14:28 +0300)]
Include scripts/mysql2sql into sdist

7 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

7 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

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

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

7 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

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

7 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

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

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

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