Skip to content

Commit 7314e37

Browse files
amotlmatriv
andcommitted
Documentation: Improve guidance about migrating to sqlalchemy-cratedb
Mention the switchover both on the project's README, and the index page of the documentation, in order to give users who might be running into relevant flaws a better chance to discover the solution. Co-authored-by: Marios Trivyzas <[email protected]>
1 parent a928d96 commit 7314e37

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

README.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,18 @@ To install the most recent driver version, run::
5858
$ pip install --upgrade crate
5959

6060

61-
Documentation and help
61+
Migration Notes
62+
===============
63+
64+
If you are migrating from previous versions of ``crate[sqlalchemy]<1.0.0``, you
65+
will find that the newer releases ``crate>=1.0.0`` no longer include the
66+
SQLAlchemy dialect for CrateDB.
67+
68+
See `migrate to sqlalchemy-cratedb`_ for relevant guidelines about how to
69+
successfully migrate to the `sqlalchemy-cratedb`_ package.
70+
71+
72+
Documentation and Help
6273
======================
6374

6475
- `CrateDB Python Client documentation`_
@@ -68,8 +79,8 @@ Documentation and help
6879
- Other `support channels`_
6980

7081

71-
Contributing
72-
============
82+
Contributions
83+
=============
7384

7485
The CrateDB Python client library is an open source project, and is `managed on
7586
GitHub`_. We appreciate contributions of any kind.
@@ -84,6 +95,7 @@ GitHub`_. We appreciate contributions of any kind.
8495
.. _DB API 2.0: https://peps.python.org/pep-0249/
8596
.. _Developer documentation: DEVELOP.rst
8697
.. _managed on GitHub: https://github.com/crate/crate-python
98+
.. _migrate to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
8799
.. _PyPI: https://pypi.org/
88100
.. _SQLAlchemy: https://www.sqlalchemy.org/
89101
.. _sqlalchemy-cratedb: https://github.com/crate/sqlalchemy-cratedb

docs/index.rst

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ it has also been tested successfully with `PyPy`_.
2727
Please make sure to also visit the section about :ref:`other-options`, using
2828
the :ref:`crate-reference:interface-postgresql` interface of `CrateDB`_.
2929

30-
The :ref:`CrateDB dialect <using-sqlalchemy>` for `SQLAlchemy`_ is provided
31-
by the ``sqlalchemy-cratedb`` package.
32-
3330

3431
*************
3532
Documentation
@@ -98,6 +95,21 @@ please consult the :ref:`data-types` documentation page.
9895

9996
data-types
10097

98+
99+
Migration Notes
100+
===============
101+
102+
The :ref:`CrateDB dialect <using-sqlalchemy>` for `SQLAlchemy`_ is provided
103+
by the `sqlalchemy-cratedb`_ package.
104+
105+
If you are migrating from previous versions of ``crate[sqlalchemy]<1.0.0``, you
106+
will find that the newer releases ``crate>=1.0.0`` no longer include the
107+
SQLAlchemy dialect for CrateDB.
108+
109+
See `migrate to sqlalchemy-cratedb`_ for relevant guidelines about how to
110+
successfully migrate to the `sqlalchemy-cratedb`_ package.
111+
112+
101113
Examples
102114
========
103115

@@ -168,10 +180,12 @@ The project is licensed under the terms of the Apache 2.0 license, like
168180
.. _GeoJSON geometry objects: https://tools.ietf.org/html/rfc7946#section-3.1
169181
.. _LICENSE: https://github.com/crate/crate-python/blob/master/LICENSE
170182
.. _managed on GitHub: https://github.com/crate/crate-python
183+
.. _migrate to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
171184
.. _pandas: https://en.wikipedia.org/wiki/Pandas_(software)
172185
.. _PEP 249: https://peps.python.org/pep-0249/
173186
.. _PyPy: https://www.pypy.org/
174187
.. _sample application: https://github.com/crate/crate-sample-apps/tree/main/python-flask
175188
.. _sample application documentation: https://github.com/crate/crate-sample-apps/blob/main/python-flask/documentation.md
176189
.. _SQLAlchemy: https://en.wikipedia.org/wiki/Sqlalchemy
190+
.. _sqlalchemy-cratedb: https://github.com/crate/sqlalchemy-cratedb
177191
.. _Use CrateDB with pandas: https://github.com/crate/crate-qa/pull/246

0 commit comments

Comments
 (0)