Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Connect to CrateDB and CrateDB Cloud using ConnectorX

About

ConnectorX enables you to load data from databases into Python in the fastest and most memory efficient way.

Usage

You can optionally accelerate the data loading using parallelism by specifying a partition column.

import connectorx as cx

cx.read_sql(
    "postgresql://username:password@server:port/database", 
    "SELECT * FROM lineitem", 
    partition_on="l_orderkey", 
    partition_num=10,
)

Please find more usage examples on the ConnectorX documentation.

Status

The example program demo.py in this folder demonstrates basic use by reading from the built-in sys.summits table.

Please note many special data types have not been verified to work with CrateDB yet, or have been identified to not work yet. We are enumerating them within the backlog file.