13 Commits

Author SHA1 Message Date
Mike Bayer
971b9e62df Use engine.connect(); don't use private _run_visitor method
SQLAlchemy 1.3 has deprecated engine.contextual_connect() which
will be removed in 1.4.   Additionally, private methods like
Engine._run_visitor will also be removed.

Change-Id: I319785d7dd83ffe2c6e651a2494b073becc84684
2019-07-16 09:39:49 -04:00
Matt Riedemann
12a6bcfa8c Conditionally import ibmdb2/ibm_db_sa
Since ibm_db_sa is not part of sqlalchemy, we need to handle the
conditional import of the module in visitor.py so we don't get an
ImportError if ibm_db_sa is not available.

Closes-Bug: #1287229

Change-Id: Ida070b629ce3b9be727ae49973bb6a71543c1dcf
2014-03-04 10:12:40 -08:00
Matt Riedemann
85317aead6 Add DB2 10.5 Support
This patch adds the initial support for DB2 10.5 to migrate. It
includes:

1. The dialect implementation for DB2.
2. The dialect registration with the visitor.
3. Code to parse the engine name in version.py.
4. A new dependency on ibm_db_sa in test-requirements.txt.
5. A connection string in test_db.cfg for ibm_db_sa.

Part of blueprint add-db2-support

Co-authored-by: Sheng Bo Hou <sbhou@cn.ibm.com>
Co-authored-by: Thuy Christenson <thuy@us.ibm.com>
Co-authored-by: Rahul Priyadarshi <rahul.priyadarshi@in.ibm.com>
Change-Id: I745ec615487b1b06c5d1a09ea316f376d66ee4c0
2014-02-17 07:17:31 -08:00
iElectric
a3d3470d5e adding connection keyword to ORM methods 2010-07-11 17:22:28 +02:00
iElectric
7cb4b6363c applying patch for issue #61 by Michael Bayer 2009-07-13 18:45:52 +02:00
iElectric
de3c53989d add support for SA 0.6 by Michael Bayer 2009-06-29 10:18:03 +00:00
iElectric
a8c31eb25f adding basic support for firebird, fixes #55 2009-06-22 10:22:06 +00:00
iElectric
672d9bd576 some more PEP8 love 2009-06-21 09:17:23 +00:00
iElectric
cde0f9b52d updated changeset tests. whole package is finally PEP8. fixed mysql tests&bugs. updated docs where apropriate. changeset test coverage almost at 100% 2009-06-20 22:33:03 +00:00
iElectric
7eafe744c2 - refactor migrate.changeset;
- visitors are refactored to be more unified
- constraint module is refactored, CheckConstraint is added
- documentation is partialy updated, dialect support table is added (unfinished)
- test_constraint was updated
NOTE: oracle and mysql were not tested, *may be broken*
2009-06-16 15:17:33 +00:00
iElectric
8a8b1d2366 use sqlalchemy preparer to do SQL quote formatting. this is a raw change, tests are yet to be written 2009-06-11 22:27:38 +00:00
jan.dittberner
eb00570991 make migrate.changeset.databases PEP-8 clean and add it to the API docs 2009-01-25 12:52:33 +00:00
jan.dittberner
2cfe1fc31c moved trunk, branches and tags to project root
fixes Issue #5
2008-02-06 18:39:07 +00:00