Skip to content

Commit 3116d11

Browse files
committed
0.4.4-alpha.2: Add arrow_stream return type to Python API
1 parent df01d76 commit 3116d11

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

connectorx-cpp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "connectorx-cpp"
3-
version = "0.4.4-alpha.1"
3+
version = "0.4.4-alpha.2"
44
edition = "2021"
55
license = "MIT"
66

connectorx-python/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

connectorx-python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Weiyuan Wu <[email protected]>"]
33
edition = "2018"
44
name = "connectorx-python"
5-
version = "0.4.4-alpha.1"
5+
version = "0.4.4-alpha.2"
66
license = "MIT"
77
readme = "README.md"
88

connectorx-python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ license = "MIT"
1818
maintainers = ["Weiyuan Wu <[email protected]>"]
1919
name = "connectorx"
2020
readme = "README.md" # Markdown files are supported
21-
version = "0.4.4-alpha.1"
21+
version = "0.4.4-alpha.2"
2222

2323
[project]
2424
name = "connectorx" # Target file name of maturin build

connectorx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT"
77
name = "connectorx"
88
readme = "../README.md"
99
repository = "https://github.com/sfu-db/connector-x"
10-
version = "0.4.4-alpha.1"
10+
version = "0.4.4-alpha.2"
1111

1212
[dependencies]
1313
anyhow = "1"

docs/api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ connectorx.read_sql(conn: Union[str, Dict[str, str]], query: Union[List[str], st
1010
- `conn: Union[str, Dict[str, str]]`: Connection string URI for querying single database or dict of database names (key) and connection string URIs (value) for querying multiple databases.
1111
- Please check out [here](https://sfu-db.github.io/connector-x/databases.html) for connection string examples of each database
1212
- `query: Union[str, List[str]]`: SQL query or list of partitioned SQL queries for fetching data.
13-
- `return_type: str = "pandas"`: The return type of this function. It can be `arrow`, `pandas`, `modin`, `dask` or `polars`.
13+
- `return_type: str = "pandas"`: The return type of this function. It can be `arrow`, `arrow_stream`, `pandas`, `modin`, `dask` or `polars`.
1414
- `protocol: str = "binary"`: The protocol used to fetch data from source, default is `binary`. Check out [here](./databases.md) to see more details.
1515
- `partition_on: Optional[str]`: The column to partition the result.
1616
- `partition_range: Optional[Tuple[int, int]]`: The value range of the partition column.
1717
- `partition_num: Optional[int]`: The number of partitions to generate.
1818
- `index_col: Optional[str]`: The index column to set for the result dataframe. Only applicable when `return_type` is `pandas`, `modin` or `dask`.
1919
- `pre_execution_query: Optional[Union[str, List[str]]]`: SQL query or list of SQL queries executed before main query. Can be used to set runtime configurations using SET statements. Only applicable for source "Postgres" and "MySQL"
20+
- `batch_size: Optional[int]`: The maximum number of rows of each batch when `return_type=arrow_stream`.
2021

2122
## Examples
2223
- Read a DataFrame from a SQL using a single thread

0 commit comments

Comments
 (0)