История изменений
Исправление
twinpeaks,
(текущая версия)
:
tz4678 ★★ (08.12.21 16:35:46)
autocommit можно включить/отключить… че угодно делать. читай маны.
Боюсь, что тебя можно отправить читать маны:
The “autocommit” feature of SQLAlchemy is a legacy feature that will be deprecated in an upcoming release. New usage paradigms will eliminate the need for it to be present. … This section discusses the feature within SQLAlchemy that automatically invokes the .commit() method on a DBAPI connection, however this is against a DBAPI connection that is itself transactional. For true AUTOCOMMIT, see the next section Setting Transaction Isolation Levels including DBAPI Autocommit.
Вообще, если ты не заметил, я тебе привел переключение на уровне РСУБД, и пример привел не просто так :)
Дальше бы, я бы тебя помацал бы на предмет: «Global Deadlock Detector» (я же не просто так сказал именно про MVCC, механизм который в РСУБД).
Короче, БДСМ-кот. Скучно.
tz4678 ★★ (08.12.21 16:35:46)
design by contract - «не нужно».
С чего ли? Глянул форумы питонистов, вполне себе реализуют они Design by Contract:
class Math:
def square_root(self, number)
"""
Calculate the square-root of C{number}
@precondition: C{number >= 0}
@postcondition: C{abs(result * result - number) < 0.01}
Через твои любимые «декораторы». Так что автох#й , насчет того, что якобы «не нужно».
tz4678 ★★ (08.12.21 16:35:46)
код на хацкеле - просто треш.
С чего ли? Ты его хоть понял, чтобы личностно-субъективные ярлыки вешать?
Исправление
twinpeaks,
:
tz4678 ★★ (08.12.21 16:35:46)
autocommit можно включить/отключить… че угодно делать. читай маны.
Боюсь, что тебя можно отправить читать маны:
The “autocommit” feature of SQLAlchemy is a legacy feature that will be deprecated in an upcoming release. New usage paradigms will eliminate the need for it to be present. … This section discusses the feature within SQLAlchemy that automatically invokes the .commit() method on a DBAPI connection, however this is against a DBAPI connection that is itself transactional. For true AUTOCOMMIT, see the next section Setting Transaction Isolation Levels including DBAPI Autocommit.
Вообще, если ты не заметил, я тебе привел переключение на уровне РСУБД, и пример привел не просто так :)
Дальше бы, я бы тебя помацал бы на предмет: «Global Deadlock Detector» (я же не просто так сказал именно про MVCC, механизм который в РСУБД).
Короче, БДСМ-кот. Скучно.
tz4678 ★★ (08.12.21 16:35:46)
design by contract - «не нужно».
С чего ли? Глянул форумы питонистов, вполне себе реализуют они Design by Contract:
class Math:
def square_root(self, number)
"""
Calculate the square-root of C{number}
@precondition: C{number >= 0}
@postcondition: C{abs(result * result - number) < 0.01}
Через твои любимые «декараторы». Так что автох#й , насчет того, что якобы «не нужно».
tz4678 ★★ (08.12.21 16:35:46)
код на хацкеле - просто треш.
С чего ли? Ты его хоть понял, чтобы личностно-субъективные ярлыки вешать?
Исходная версия
twinpeaks,
:
tz4678 ★★ (08.12.21 16:35:46)
autocommit можно включить/отключить… че угодно делать. читай маны.
Боюсь, что тебя можно отправить читать маны:
The “autocommit” feature of SQLAlchemy is a legacy feature that will be deprecated in an upcoming release. New usage paradigms will eliminate the need for it to be present. … This section discusses the feature within SQLAlchemy that automatically invokes the .commit() method on a DBAPI connection, however this is against a DBAPI connection that is itself transactional. For true AUTOCOMMIT, see the next section Setting Transaction Isolation Levels including DBAPI Autocommit.
Вообще, если ты не заметил, я тебе привел переключение на уровне РСУБД, и пример привел не просто так :)
Дальше бы, я бы тебя помацал бы на предмет: «Global Deadlock Detector» (я же не просто так сказал именно про MVCC, механизм который в РСУБД).
Короче, БДСМ-кот. Скучно.
tz4678 ★★ (08.12.21 16:35:46)
design by contract - «не нужно».
С чего ли? Глянул форумы питонистов, вполне себе реализуют они Design by Contract:
class Math:
def square_root(self, number)
"""
Calculate the square-root of C{number}
@precondition: C{number >= 0}
@postcondition: C{abs(result * result - number) < 0.01}
Через твои любимые «декараторы». Так что автох#й , что не нужно.
tz4678 ★★ (08.12.21 16:35:46)
код на хацкеле - просто треш.
С чего ли? Ты его хоть понял, чтобы личностно-субъективные ярлыки вешать?