Skip to content

Commit 3d2d597

Browse files
committed
Documentation: README: Add note that SQLAlchemy snippet needs SA20
1 parent 9e66ac3 commit 3d2d597

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ Connect to CrateDB instance running on ``localhost``.
111111
.. code-block:: python
112112
113113
# Connect using SQLAlchemy Core.
114+
import pkg_resources
114115
import sqlalchemy as sa
115116
from pprint import pp
117+
118+
pkg_resources.require("sqlalchemy>=2.0")
116119
117120
dburi = "crate://localhost:4200"
118121
query = "SELECT country, mountain, coordinates, height FROM sys.summits ORDER BY country;"

0 commit comments

Comments
 (0)