[Python] Unit of Work in python
flandero
flandero a gmail.com
Sab 19 Set 2015 11:29:22 CEST
2015-09-17 10:44 GMT+02:00 Stefano Bossi <ste.bossi a gmail.com>:
> Qualcuno l'ha mai implementato?
> A parte l'implementazione di SQLAlchemy ne conoscete altre?
> Sapete per caso se Django non lo ha mai preso in considerazione?
>
> grazie,
> stefano
>
> _______________________________________________
> Python mailing list
> Python a lists.python.it
> http://lists.python.it/mailman/listinfo/python
>
>
Ciao,
forse ti riferisci a:
Forse ti riferisci a
https://docs.djangoproject.com/en/1.8/topics/db/transactions/, precisamente
al metodo 'atomic'
atomic(*using=None*, *savepoint=True*)[source]
<https://docs.djangoproject.com/en/1.8/_modules/django/db/transaction/#atomic>
¶
<https://docs.djangoproject.com/en/1.8/topics/db/transactions/#django.db.transaction.atomic>
Atomicity is the defining property of database transactions. atomic allows
us to create a block of code within which the atomicity on the database is
guaranteed. If the block of code is successfully completed, the changes are
committed to the database. If there is an exception, the changes are rolled
back.
Ciao
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.python.it/pipermail/python/attachments/20150919/e832ad8c/attachment.html>
Maggiori informazioni sulla lista
Python