Skip to content

Commit 5978a10

Browse files
authored
Merge pull request #8 from quackscience/fly-higher
Fly Higher
2 parents 87fd9e6 + 9173571 commit 5978a10

File tree

3 files changed

+729
-98
lines changed

3 files changed

+729
-98
lines changed

README.md

+37-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ _QuackPy is a serverless OLAP API built on top of DuckDB exposing HTTP/S and Arr
99

1010

1111
> [!IMPORTANT]
12+
> - Arrow Flight API for modern data clients _(DuckDB Airport)_
1213
> - Easy HTTP API with multiple formats _(JSON,CSV,Parquet)_
13-
> - Powerful Arrow Flight API for modern data clients
1414
> - Unlocked Concurrent inserts and querying on DuckDB
1515
> - Persistent storage using w/ multiuser authentication
1616
> - Native access to any DuckDB Extension & Format
@@ -77,6 +77,42 @@ D select * from airport_take_flight('grpc://localhost:8815/', ['show_version']);
7777
└─────────────┘
7878
```
7979

80+
##### 🎫 ATTACH Flights Tables
81+
```sql
82+
D --- Attach to Flight Server
83+
D ATTACH 'deltalake' (TYPE AIRPORT, location 'grpc://localhost:8815/');
84+
85+
D --- Create Schema + Table
86+
D CREATE SCHEMA deltalake.test1;
87+
D CREATE TABLE deltalake.test1.people (
88+
name VARCHAR,
89+
love_of_duckdb INT,
90+
tags VARCHAR[]
91+
);
92+
93+
D --- Insert into Flight Table
94+
D INSERT INTO deltalake.test1.people values
95+
('rusty', 5, ['airport', 'datasketches']);
96+
97+
D --- Select from Flight Table
98+
D SELECT * FROM deltalake.test1.people;
99+
┌─────────┬────────────────┬─────────────────────────┐
100+
│ name │ love_of_duckdb │ tags │
101+
varchar │ int32 │ varchar[] │
102+
├─────────┼────────────────┼─────────────────────────┤
103+
│ rusty │ 5 │ [airport, datasketches] │
104+
├─────────┴────────────────┴─────────────────────────┤
105+
1 row. 3 columns │
106+
└────────────────────────────────────────────────────┘
107+
```
108+
109+
> Flight Tables can be accessed via HTTP API using the schema name
110+
```sql
111+
USE test1; SELECT * FROM people;
112+
```
113+
![image](https://github.com/user-attachments/assets/82d9c7bf-cbf2-49d3-b4dc-a57a0ddaf46a)
114+
115+
80116
##### 🎫 Take Custom Flights w/ Custom Headers + Ticket
81117
```sql
82118
D SELECT * FROM airport_take_flight('grpc://localhost:8815', 'SELECT 1', headers := MAP{'authorization':'user:password'} );

0 commit comments

Comments
 (0)