Skip to content

Commit c84f7ba

Browse files
committed
Driver/Python: Add ConnectorX
1 parent d9e858b commit c84f7ba

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/connect/python.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,26 @@ loop = asyncio.get_event_loop()
243243
loop.run_until_complete(run())
244244
```
245245

246+
(connectorx)=
247+
248+
### ConnectorX
249+
250+
[ConnectorX] enables you to load data from databases into Python in the
251+
fastest and most memory efficient way.
252+
253+
```python
254+
import connectorx as cx
255+
256+
cx.read_sql(
257+
"postgresql://username:password@server:port/database",
258+
"SELECT * FROM lineitem",
259+
partition_on="l_orderkey",
260+
partition_num=10,
261+
)
262+
```
263+
264+
- [Connect to CrateDB using ConnectorX]
265+
246266

247267
(python-dataframe)=
248268
(df)=
@@ -266,10 +286,12 @@ How to use CrateDB together with popular open-source DataFrame libraries.
266286

267287
[aiopg documentation]: https://aiopg.readthedocs.io/
268288
[asyncpg documentation]: https://magicstack.github.io/asyncpg/current/
289+
[ConnectorX]: https://sfu-db.github.io/connector-x/
269290
[httpx]: https://www.python-httpx.org/
270291
[psycopg 3]: https://www.psycopg.org/psycopg3/docs/
271292
[psycopg documentation]: https://www.psycopg.org/docs/
272293

294+
[Connect to CrateDB using ConnectorX]: https://github.com/crate/cratedb-examples/tree/main/by-language/python-connectorx
273295
[RDBMS]: https://en.wikipedia.org/wiki/RDBMS
274296
[SQLAlchemy]: https://www.sqlalchemy.org/
275297
[SQLAlchemy Code Examples]: https://github.com/crate/cratedb-examples/tree/main/by-language/python-sqlalchemy

0 commit comments

Comments
 (0)