Disrupt07 ha scritto:
> @Glauco Thanks.
>
> It worked for me with the set() function.
>
> It would be nice if SQLAlchemy has something to constrain distinct
> values on save() or flush().
>   

I think this is not work for SA....


if you have an unique field and do some
insert into table values ( 'boo');
you do an error and the DB do the unique check contraint for you....

in the same manner:

a = Table()
for x in ['boo','boo','boo']:
   a.new( x );




i think is better let the DB do his work..... and SA remain the orm :-)


Glauco


-- 
+------------------------------------------------------------+
                                  Glauco Uri - Programmatore
                                    glauco(at)allevatori.com 
                               
  Sfera Carta Software®      [EMAIL PROTECTED]
  Via Bazzanese,69  Casalecchio di Reno(BO) - Tel. 051591054 
+------------------------------------------------------------+



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to