@@ -27,7 +27,7 @@ let ctx = SessionContext::with_state(state);
2727- Flight SQL
2828- ODBC
2929
30- ## Examples
30+ ## Examples (in Rust)
3131
3232Run the included examples to see how to use the table providers:
3333
@@ -45,6 +45,7 @@ cargo run --example duckdb_function --features duckdb
4545### SQLite
4646
4747``` bash
48+ # Run from repo folder
4849cargo run --example sqlite --features sqlite
4950```
5051
6970```
7071
7172``` bash
72- # If running from core/ folder
73- cargo run --example postgres --features postgres
74- # If running from main repo folder
75- cargo run -p datafusion-table-providers --example postgres --no-default-features --features postgres
73+ # Run from repo folder
74+ cargo run -p datafusion-table-providers --example postgres --features postgres
7675
7776```
7877
9796```
9897
9998``` bash
100- # If run from core/ folder
101- cargo run --example mysql --features mysql
102- # If run from main repo folder
103- cargo run -p datafusion-table-providers --example mysql --no-default-features --features mysql
99+ # Run from repo folder
100+ cargo run -p datafusion-table-providers --example mysql --features mysql
104101```
105102
106103### Flight SQL
@@ -111,7 +108,8 @@ brew install roapi
111108# cargo install --locked --git https://github.com/roapi/roapi --branch main --bins roapi
112109roapi -t taxi=https://d37ci6vzurychx.cloudfront.net/trip-data/yellow_tripdata_2024-01.parquet &
113110
114- cargo run -p datafusion-table-providers --example flight-sql --no-default-features --features flight
111+ # Run from repo folder
112+ cargo run -p datafusion-table-providers --example flight-sql --features flight
115113```
116114
117115### ODBC
@@ -138,3 +136,9 @@ Description = SQLite3 ODBC Driver
138136Driver = /opt/homebrew/Cellar/sqliteodbc/0.99991/lib/libsqlite3odbc.dylib
139137```
1401384 . Test configuration by running ` odbcinst -q -d -n SQLite3 ` . If the path is printed out correctly, then you are all set.
139+
140+ ## Examples (in Python)
141+ 1 . Start a Python venv
142+ 2 . Enter into venv
143+ 3 . Inside python/ folder, run ` maturin develop ` .
144+ 4 . Inside python/examples/ folder, run the corresponding test using ` python3 [file_name] ` .
0 commit comments