44SQLAlchemy dialect for CrateDB
55##############################
66
7- .. rubric :: Table of contents
8-
9- .. contents ::
10- :local:
11- :depth: 1
12-
137
148*****
159About
@@ -58,14 +52,14 @@ Install package from PyPI.
5852
5953 pip install --upgrade sqlalchemy-cratedb
6054
61- More installation details can be found over here .
55+ See also the :ref: ` install ` page for details .
6256
6357.. toctree ::
64- :titlesonly:
58+ :hidden:
59+ :maxdepth: 1
6560
6661 install
6762
68-
6963.. _features :
7064
7165********
@@ -98,7 +92,7 @@ Connect to CrateDB instance running on ``localhost``.
9892
9993 dburi = " crate://localhost:4200"
10094 query = " SELECT country, mountain, coordinates, height FROM sys.summits ORDER BY country;"
101-
95+
10296 engine = sa.create_engine(dburi, echo = True )
10397 with engine.connect() as connection:
10498 with connection.execute(sa.text(query)) as result:
@@ -124,10 +118,10 @@ Load results into `pandas`_ DataFrame.
124118 # Connect using SQLAlchemy Core and pandas.
125119 import pandas as pd
126120 import sqlalchemy as sa
127-
121+
128122 dburi = " crate://localhost:4200"
129123 query = " SELECT * FROM sys.summits ORDER BY country;"
130-
124+
131125 engine = sa.create_engine(dburi, echo = True )
132126 with engine.connect() as connection:
133127 df = pd.read_sql(sql = sa.text(query), con = connection)
@@ -195,52 +189,19 @@ use of the SQLAlchemy dialect.
195189- The `Apache Superset `_ and `FIWARE QuantumLeap data historian `_ projects.
196190
197191
192+ .. seealso ::
198193
199- *******************
200- Project information
201- *******************
202-
203- Resources
204- =========
205- - `Source code <https://github.com/crate/sqlalchemy-cratedb >`_
206- - `Documentation <https://github.com/crate/sqlalchemy-cratedb >`_
207- - `Python Package Index (PyPI) <https://pypi.org/project/sqlalchemy-cratedb/ >`_
208-
209- Contributions
210- =============
211- The SQLAlchemy dialect for CrateDB is an open source project, and is `managed on
212- GitHub `_.
213- Every kind of contribution, feedback, or patch, is much welcome. `Create an
214- issue `_ or submit a patch if you think we should include a new feature, or to
215- report or fix a bug.
216-
217- Development
218- ===========
219- In order to setup a development environment on your workstation, please head
220- over to the `development sandbox `_ documentation. When you see the software
221- tests succeed, you should be ready to start hacking.
222-
223- Page index
224- ==========
225- The full index for all documentation pages can be inspected at :ref: `index-all `.
226-
227- License
228- =======
229- The project is licensed under the terms of the Apache 2.0 license, like
230- `CrateDB itself <CrateDB source _>`_, see `LICENSE `_.
231-
194+ The CrateDB SQLAlchemy dialect for SQLAlchemy is an open source project and
195+ is `managed on GitHub `_. Contributions, feedback, or patches are highly
196+ welcome!
232197
233198.. _Apache Superset : https://github.com/apache/superset
234199.. _CrateDB : https://cratedb.com/database
235200.. _CrateDB Cloud : https://console.cratedb.cloud/
236- .. _CrateDB source : https://github.com/crate/crate
237- .. _Create an issue : https://github.com/crate/sqlalchemy-cratedb/issues
238- .. _development sandbox : https://github.com/crate/sqlalchemy-cratedb/blob/main/DEVELOP.md
239201.. _cratedb-examples repository : https://github.com/crate/cratedb-examples/tree/main/by-language
240202.. _FIWARE QuantumLeap data historian : https://github.com/orchestracities/ngsi-timeseries-api
241203.. _GeoJSON : https://geojson.org/
242204.. _GeoJSON geometry objects : https://tools.ietf.org/html/rfc7946#section-3.1
243- .. _LICENSE : https://github.com/crate/sqlalchemy-cratedb/blob/main/LICENSE
244205.. _managed on GitHub : https://github.com/crate/sqlalchemy-cratedb
245206.. _pandas : https://pandas.pydata.org/
246207.. _PEP 249 : https://peps.python.org/pep-0249/
0 commit comments