16 Commits

Author SHA1 Message Date
Federico Caselli d539bc3a0f update the format_docs_code to also work on python files
Change-Id: I0a6c9610b3fd85365ed4c2c199e3cad87ee64022
2024-11-30 21:10:21 +01:00
Federico Caselli 26140c0811 Surface driver connection object when using a proxied dialect
Improve the interface used by adapted drivers, like the asyncio ones,
to access the actual connection object returned by the driver.

The :class:`_engine._ConnectionRecord` and
:class:`_engine._ConnectionFairy` now have two new attributes:

* ``dbapi_connection`` always represents a DBAPI compatible
object.  For pep-249 drivers, this is the DBAPI connection as it always
has been, previously accessed under the ``.connection`` attribute.
For asyncio drivers that SQLAlchemy adapts into a pep-249 interface,
the returned object will normally be a SQLAlchemy adaption object
called :class:`_engine.AdaptedConnection`.
* ``driver_connection`` always represents the actual connection object
maintained by the third party pep-249 DBAPI or async driver in use.
For standard pep-249 DBAPIs, this will always be the same object
as that of the ``dbapi_connection``.  For an asyncio driver, it will be
the underlying asyncio-only connection object.

The ``.connection`` attribute remains available and is now a legacy alias
of ``.dbapi_connection``.

Fixes: #6832
Change-Id: Ib72f97deefca96dce4e61e7c38ba430068d6a82e
2021-09-17 18:08:42 -04:00
Gord Thompson b5927dd922 Update README.dialects.rst
Update link to sqlalchemy-access, plus a few minor tweaks

Change-Id: Ief2876760edf4f7cec311748012cb0944df3babd
2021-05-05 09:30:24 -06:00
Gord Thompson 405fc97170 Rename py.test to pytest
Change-Id: I431e1ef41e26d490343204a75a5c097768749768
2020-04-16 16:06:36 -06:00
Mike Bayer 051c2fde4c "does not support reflection" -> "does not support nullable booleans"
Change-Id: Icf00f9250ffe45413369a6bb2c2910da42c017ee
2019-12-17 09:57:30 -05:00
Mike Bayer dd755ca59b - additional edits to README.dialects.rst
Change-Id: I06add0ca77d038f03941ba266cb69dbd6a246ee8
2019-10-02 17:42:46 -04:00
Gord Thompson a9eaea20e0 update README.dialects; add *.pyd to .gitignore 2019-09-29 12:36:01 -06:00
Gord Thompson 11c24cd2ed Update link to sqlalchemy-access 2019-09-05 07:53:41 -06:00
Mike Bayer 1a3792c3b3 - remove references to nose
Change-Id: I970cc257dfb1c69413fa1c5593ba523ffc5070d4
2019-05-09 11:57:12 -04:00
Lele Gaifax 66e88d30a8 Fix many spell glitches
This affects mostly docstrings, except in orm/events.py::dispose_collection()
where one parameter gets renamed: given that the method is
empty, it seemed reasonable to me to fix that too.

Closes: #4440
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4440
Pull-request-sha: 779ed75acb

Change-Id: Ic0553fe97853054b09c2453af76d96363de6eb0e
2019-01-25 14:56:50 -05:00
Mike Bayer 31491a6acc - rework the unittests README which was very out of date
Change-Id: Id9bda43ea493a8d493be5ecb19da16a91a298f9d
2017-08-19 14:06:14 -04:00
Mike Bayer ea05a23218 - Support has been added for pytest to run tests. This runner
is currently being supported in addition to nose, and will likely
be preferred to nose going forward.   The nose plugin system used
by SQLAlchemy has been split out so that it works under pytest as
well.  There are no plans to drop support for nose at the moment
and we hope that the test suite itself can continue to remain as
agnostic of testing platform as possible.  See the file
README.unittests.rst for updated information on running tests
with pytest.

The test plugin system has also been enhanced to support running
tests against mutiple database URLs at once, by specifying the ``--db``
and/or ``--dburi`` flags multiple times.  This does not run the entire test
suite for each database, but instead allows test cases that are specific
to certain backends make use of that backend as the test is run.
When using pytest as the test runner, the system will also run
specific test suites multiple times, once for each database, particularly
those tests within the "dialect suite".   The plan is that the enhanced
system will also be used by Alembic, and allow Alembic to run
migration operation tests against multiple backends in one run, including
third-party backends not included within Alembic itself.
Third party dialects and extensions are also encouraged to standardize
on SQLAlchemy's test suite as a basis; see the file README.dialects.rst
for background on building out from SQLAlchemy's test platform.
2014-03-03 15:55:17 -05:00
Mike Bayer c87f6af48c - add a nose runner that erases out argv, otherwise
you get "import test" as what it tries to run with
setup.py test
2013-03-25 16:59:27 -04:00
Mike Bayer 9e3cd16c21 - encourage requirements to be in the dialect module,
document running SQLA main tests with external dialect
2013-02-07 20:29:47 -05:00
Mike Bayer 5eaeb70104 updates 2012-10-10 01:41:01 -04:00
Mike Bayer 568de1ef49 - new dialect development README 2012-10-10 01:24:58 -04:00