veekun_pokedex/pokedex/db
rluzuriaga f535b61341 Handle CLI load into existing tables gracefully (PR #300)
- Add exception handling for SQLite, PostgreSQL, and MySQL.
Sqlalchemy gives different exceptions for each database engine so I have
seperated each exception for each engine.
The error message passed by each engine is also different so that is
checked as well.
- Once the function gets one of those exceptions the following message
is outputed and the program ends: `ERROR:  Table 'TABLENAME' already
exists in the database. Did you mean to use 'pokedex load -D'`
- If the error is not that a table already exists, then the output will
just be the full error from sqlalchemy. That way if someone runs into
that error it can be reported as an issue and whoever can help would see
the full error.
---
Resolves part of issue #16
2020-06-17 16:12:32 -07:00
..
__init__.py Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00
dependencies.py load: Add --recursive option. 2011-04-03 03:17:08 -07:00
load.py Handle CLI load into existing tables gracefully (PR #300) 2020-06-17 16:12:32 -07:00
markdown.py Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00
multilang.py fix test suite under SQLAlchemy 1.2.x 2018-03-30 12:01:21 -07:00
oracle.py Update the docstring on rewrite_long_table_names. 2014-02-21 17:59:52 -05:00
tables.py Fix Roserade's Central Kalos dex number and add tests 2019-07-16 18:12:58 -07:00
translations.py Catch StopIteration explicitly in group_by_object generator (#264) 2019-07-15 13:23:37 -07:00
util.py Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00