wmjie / ibm-db

Automatically exported from code.google.com/p/ibm-db
0 stars 0 forks source link

AS400 Dialect. #127

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

currently there is no explicit Dialect for choosing an AS400 Remote Database.
As we have already the AS400 Reflector it's in my opinion not an hard task to 
add this new Dialect.

This little snippet is enough in my environment to get things working...

from ibm_db_sa.ibm_db import DB2Dialect_ibm_db
from ibm_db_sa.reflection import AS400Reflector

class AS400Dialect(DB2Dialect_ibm_db):
    _reflector_cls = AS400Reflector

setup.py:
'sqlalchemy.dialects': ['db2as400=ukh.db:AS400Dialect',],

DSN:
db2as400://...

Can you add this explict Dialect to the core package?

Original issue reported on code.google.com by c...@novareto.de on 22 Mar 2013 at 3:24

GoogleCodeExporter commented 9 years ago
Did with above changes you are able to use AS400 remote database correctly, I 
am not sure about this as I didn't yet tested on AS400 database.

Original comment by rahul.pr...@in.ibm.com on 10 Jul 2013 at 6:11

GoogleCodeExporter commented 9 years ago
Hi,

yes it works nicely with this little change.
I hope you can include it.

Original comment by c...@novareto.de on 10 Jul 2013 at 7:16

GoogleCodeExporter commented 9 years ago
Hello Christian,

I would gladly learn your solution in more detail.
I'm trying to solve similar issue, but worse results so far.

Thanks in advance.
Adam

Original comment by Adam.J.M...@gmail.com on 10 Jul 2013 at 12:29