Re: Unified DA for Zope 2 using SQLAlchemy?

Andreas Jung <[email protected]> Mon, 26 Mar 2007 07:07:34 +0200
Newsgroups gmane.comp.web.zope.database
Message-ID <[email protected]>

--On 25. März 2007 23:54:14 +0200 Maciej Wisniowski 
<[email protected]> wrote:

>> In the Zope 2 worlds we have dedicated database adapters
>> for different databases. Fortunately the Python world made us a
>> wonderful present called SQLAlchemy that abstracts the different
>> databases. In the Zope world we have some wrappers like
>> z3c.zalchemy and z3c.sqlalchemy... basically they deal with connection
>> handling, mapper handling and integration with the Zope transaction
>> system. Would it make sense to replace all different Zope DAs with
>> a generic DA on top of one of the z3c.* wrappers? I think it would not
>> be too hard to write such a DA...or am I missing something? Thoughts?
>
> Now (in Zope2) we have things like ZOracleDA (DCOracle2), ZPsycopgDA
> etc. that are adapters to these specific databases. They're based on
> Shared/DC/ZRDB/.
> In Zope3 there are also such adapters eg. one using cx_Oracle. They're
> based on Zope3 rdb module.
>
> What do you mean by 'replacing' them? You want wrapper build for
> z3c.* to be used instead of ZRDB (rdb)?
>
> You're talking about Zope2 or Zope3 too?

The subject says Zope 2:-)

-aj

_______________________________________________
Zope-DB mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zope-db
signature.asc (application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFGB1UXCJIWIbr9KYwRAu/0AKDlWOu36gcNSmsooTTUFHxXVF2ITQCg1uc9
6W8RwpJW320HcRURKDGZgCY=
=Ax1N
-----END PGP SIGNATURE-----