summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-04-14 13:15:21 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-04-14 13:15:21 -0400
commitcea03be855514d592b6671fa6dbc074a19a795fb (patch)
treef127540bda77a4ea5d9935cffedf04d8b01776a9 /lib/sqlalchemy/ext/compiler.py
parenta898ade3bc36ca27cf9475d1348249646eb40e95 (diff)
downloadsqlalchemy-cea03be855514d592b6671fa6dbc074a19a795fb.tar.gz
Run search and replace of symbolic module names
Replaces a wide array of Sphinx-relative doc references with an abbreviated absolute form now supported by zzzeeksphinx. Change-Id: I94bffcc3f37885ffdde6238767224296339698a2
Diffstat (limited to 'lib/sqlalchemy/ext/compiler.py')
-rw-r--r--lib/sqlalchemy/ext/compiler.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/sqlalchemy/ext/compiler.py b/lib/sqlalchemy/ext/compiler.py
index b8b6f8dc0..32975a949 100644
--- a/lib/sqlalchemy/ext/compiler.py
+++ b/lib/sqlalchemy/ext/compiler.py
@@ -101,7 +101,7 @@ Produces::
The above ``InsertFromSelect`` construct is only an example, this actual
functionality is already available using the
- :meth:`.Insert.from_select` method.
+ :meth:`_expression.Insert.from_select` method.
.. note::
@@ -140,7 +140,8 @@ supported.
Enabling Autocommit on a Construct
==================================
-Recall from the section :ref:`autocommit` that the :class:`.Engine`, when
+Recall from the section :ref:`autocommit` that the :class:`_engine.Engine`,
+when
asked to execute a construct in the absence of a user-defined transaction,
detects if the given construct represents DML or DDL, that is, a data
modification or data definition statement, which requires (or may require,
@@ -165,7 +166,7 @@ is a "frozen" dictionary which supplies a generative ``union()`` method)::
More succinctly, if the construct is truly similar to an INSERT, UPDATE, or
DELETE, :class:`.UpdateBase` can be used, which already is a subclass
-of :class:`.Executable`, :class:`.ClauseElement` and includes the
+of :class:`.Executable`, :class:`_expression.ClauseElement` and includes the
``autocommit`` flag::
from sqlalchemy.sql.expression import UpdateBase
@@ -405,7 +406,7 @@ from ..sql import visitors
def compiles(class_, *specs):
"""Register a function as a compiler for a
- given :class:`.ClauseElement` type."""
+ given :class:`_expression.ClauseElement` type."""
def decorate(fn):
# get an existing @compiles handler
@@ -455,7 +456,7 @@ def compiles(class_, *specs):
def deregister(class_):
"""Remove all custom compilers associated with a given
- :class:`.ClauseElement` type."""
+ :class:`_expression.ClauseElement` type."""
if hasattr(class_, "_compiler_dispatcher"):
# regenerate default _compiler_dispatch