@@ -359,24 +359,24 @@ transaction-level API in version 2.0. In 1.4, this new API is available
359359by passing the flag ``future=True `` to the :func: `_sa.create_engine `
360360function.
361361
362- When the :paramref: `_sa.create_engine.future ` flag is used, the :class: `_future .Engine `
363- and :class: `_future .Connection ` objects support the 2.0 API fully and not at all
364- any legacy features, including the new argument format for :meth: `_future .Connection.execute `,
362+ When the :paramref: `_sa.create_engine.future ` flag is used, the :class: `_engine .Engine `
363+ and :class: `_engine .Connection ` objects support the 2.0 API fully and not at all
364+ any legacy features, including the new argument format for :meth: `_engine .Connection.execute `,
365365the removal of "implicit autocommit", string statements require the
366- :func: `_sql.text ` construct unless the :meth: `_future .Connection.exec_driver_sql `
367- method is used, and connectionless execution from the :class: `_future .Engine `
366+ :func: `_sql.text ` construct unless the :meth: `_engine .Connection.exec_driver_sql `
367+ method is used, and connectionless execution from the :class: `_engine .Engine `
368368is removed.
369369
370370If all :class: `_exc.RemovedIn20Warning ` warnings have been resolved regarding
371371use of the :class: `_engine.Engine ` and :class: `_engine.Connection `, then the
372372:paramref: `_sa.create_engine.future ` flag may be enabled and there should be
373373no errors raised.
374374
375- The new engine is described at :class: `_future .Engine ` which delivers a new
376- :class: `_future .Connection ` object. In addition to the above changes, the,
377- :class: `_future .Connection ` object features
378- :meth: `_future .Connection.commit ` and
379- :meth: `_future .Connection.rollback ` methods, to support the new
375+ The new engine is described at :class: `_engine .Engine ` which delivers a new
376+ :class: `_engine .Connection ` object. In addition to the above changes, the,
377+ :class: `_engine .Connection ` object features
378+ :meth: `_engine .Connection.commit ` and
379+ :meth: `_engine .Connection.rollback ` methods, to support the new
380380"commit-as-you-go" mode of operation::
381381
382382
@@ -506,9 +506,9 @@ or the :meth:`_engine.Engine.begin` context manager::
506506
507507When using :term: `2.0 style ` with the :paramref: `_sa.create_engine.future `
508508flag, "commit as you go" style may also be used, as the
509- :class: `_future .Connection ` features **autobegin ** behavior, which takes place
509+ :class: `_engine .Connection ` features **autobegin ** behavior, which takes place
510510when a statement is first invoked in the absence of an explicit call to
511- :meth: `_future .Connection.begin `::
511+ :meth: `_engine .Connection.begin `::
512512
513513 with engine.connect() as conn:
514514 conn.execute(some_table.insert().values(foo="bar"))
@@ -554,10 +554,10 @@ of Core use cases, it's the pattern that is already recommended::
554554
555555For "commit as you go, or rollback instead" usage, which resembles how the
556556:class: `_orm.Session ` is normally used today, the "future" version of
557- :class: `_future .Connection `, which is the one that is returned from an
558- :class: `_future .Engine ` that was created using the
557+ :class: `_engine .Connection `, which is the one that is returned from an
558+ :class: `_engine .Engine ` that was created using the
559559:paramref: `_sa.create_engine.future ` flag, includes new
560- :meth: `_future .Connection.commit ` and :meth: `_future .Connection.rollback `
560+ :meth: `_engine .Connection.commit ` and :meth: `_engine .Connection.rollback `
561561methods, which act upon a transaction that is now begun automatically when
562562a statement is first invoked::
563563
@@ -578,8 +578,8 @@ Above, the ``engine.connect()`` method will return a :class:`_engine.Connection`
578578features **autobegin **, meaning the ``begin() `` event is emitted when the
579579execute method is first used (note however that there is no actual "BEGIN" in
580580the Python DBAPI). "autobegin" is a new pattern in SQLAlchemy 1.4 that
581- is featured both by :class: `_future .Connection ` as well as the ORM
582- :class: `_orm.Session ` object; autobegin allows that the :meth: `_future .Connection.begin `
581+ is featured both by :class: `_engine .Connection ` as well as the ORM
582+ :class: `_orm.Session ` object; autobegin allows that the :meth: `_engine .Connection.begin `
583583method may be called explicitly when the object is first acquired, for schemes
584584that wish to demarcate the beginning of the transaction, but if the method
585585is not called, then it occurs implicitly when work is first done on the object.
@@ -599,7 +599,7 @@ implementations, and is supported by SQLAlchemy via the
599599discussed at :ref: `dbapi_autocommit `. True autocommit is treated as an "isolation level"
600600so that the structure of application code does not change when autocommit is
601601used; the :meth: `_engine.Connection.begin ` context manager as well as
602- methods like :meth: `_future .Connection.commit ` may still be used, they are
602+ methods like :meth: `_engine .Connection.commit ` may still be used, they are
603603simply no-ops at the database driver level when DBAPI-level autocommit
604604is turned on.
605605
@@ -803,7 +803,7 @@ execute() method more strict, execution options are more prominent
803803The argument patterns that may be used with the :meth: `_engine.Connection `
804804execute method in SQLAlchemy 2.0 are highly simplified, removing many previously
805805available argument patterns. The new API in the 1.4 series is described at
806- :meth: `_future .Connection `. The examples below illustrate the patterns that
806+ :meth: `_engine .Connection `. The examples below illustrate the patterns that
807807require modification::
808808
809809
@@ -826,7 +826,7 @@ require modification::
826826
827827**Migration to 2.0 **
828828
829- The new :meth: `_future .Connection.execute ` method now accepts a subset of the
829+ The new :meth: `_engine .Connection.execute ` method now accepts a subset of the
830830argument styles that are accepted by the 1.x :meth: `_engine.Connection.execute `
831831method, so the following code is cross-compatible between 1.x and 2.0::
832832
@@ -850,7 +850,7 @@ method, so the following code is cross-compatible between 1.x and 2.0::
850850The use of ``*args `` and ``**kwargs `` has been removed both to remove the
851851complexity of guessing what kind of arguments were passed to the method, as
852852well as to make room for other options, namely the
853- :paramref: `_future .Connection.execute.execution_options ` dictionary that is now
853+ :paramref: `_engine .Connection.execute.execution_options ` dictionary that is now
854854available to provide options on a per statement basis. The method is also
855855modified so that its use pattern matches that of the
856856:meth: `_orm.Session.execute ` method, which is a much more prominent API in 2.0
0 commit comments