On 01/22/2010 10:44 AM, Giorgio Zoppi wrote:

> Ma gli ORM non garantiscono uno strato di indipendenza dal software
> sottostante a patto di usare
> un certo set di feature?
>   

Oh, si', garantiscono un sacco di cose.

http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science.aspx

A dir la verita' per implementare l'indipendenza dal "dialetto" SQL del
DB sottostante, e' sufficiente il layer 2 di sqlalchemy (quindi senza ORM)

L'ORM quindi allontana il programmatore di almeno 2 livelli di
astrazione da quanto succede nell'applicativo:
 - un livello e' dato dall'impedence mismatch dei modelli "relazionale"
e "classical OO"
 - un altro livello e' l'insieme di feature supportate dal DB rispetto
allo standard SQL

Nulla di male nelle astrazioni, a patto di conoscerne le regole.
Tra l'altro dialetto SQL e feature set non sono sempre correlati.
Personalmente ho un approccio misto: uso ORM, SQL expression language di
SQLAlchemy e feature proprie di Postgres (o MySQL/SQL Server).

-- 
This e-mail (and any attachment(s)) is strictly confidential and for use only 
by intended recipient(s). Any use, distribution, reproduction or disclosure by 
any other person is strictly prohibited. The content of this e-mail does not 
constitute a commitment by the Company except where provided for in a written 
agreement between this e-mail addressee and the Company. If you are not an 
intended recipient(s), please notify the sender promptly and destroy this 
message and its attachments without reading or saving it in any manner. Any non 
authorized use of the content of this message constitutes a violation of the 
obligation to abstain from learning of the correspondence among other subjects, 
except for more serious offence, and exposes the person responsible to the 
relevant consequences.

_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a