Add extra docs in sqlalchemy module
Change-Id: Ieb9181a2e997e5e3ea02fd91d2b85aa54a4b83be
This commit is contained in:
parent
b6c2275d1d
commit
d6217ffa83
@ -41,11 +41,18 @@ _DISABLED = False
|
|||||||
|
|
||||||
|
|
||||||
def disable():
|
def disable():
|
||||||
|
"""add_tracing does not add event listeners for sqlalchemy.
|
||||||
|
|
||||||
|
This is quite important in case of sql migrations. Because it's not allowed
|
||||||
|
to add these events.
|
||||||
|
"""
|
||||||
global _DISABLED
|
global _DISABLED
|
||||||
_DISABLED = True
|
_DISABLED = True
|
||||||
|
|
||||||
|
|
||||||
def enable():
|
def enable():
|
||||||
|
"""add_tracing adds event listeners for sqlalchemy."""
|
||||||
|
|
||||||
global _DISABLED
|
global _DISABLED
|
||||||
_DISABLED = False
|
_DISABLED = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user