@@ -9,8 +9,8 @@ _QuackPy is a serverless OLAP API built on top of DuckDB exposing HTTP/S and Arr
9
9
10
10
11
11
> [ !IMPORTANT]
12
+ > - Arrow Flight API for modern data clients _ (DuckDB Airport)_
12
13
> - Easy HTTP API with multiple formats _ (JSON,CSV,Parquet)_
13
- > - Powerful Arrow Flight API for modern data clients
14
14
> - Unlocked Concurrent inserts and querying on DuckDB
15
15
> - Persistent storage using w/ multiuser authentication
16
16
> - Native access to any DuckDB Extension & Format
@@ -77,6 +77,42 @@ D select * from airport_take_flight('grpc://localhost:8815/', ['show_version']);
77
77
└─────────────┘
78
78
```
79
79
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
+
80
116
##### 🎫 Take Custom Flights w/ Custom Headers + Ticket
81
117
``` sql
82
118
D SELECT * FROM airport_take_flight(' grpc://localhost:8815' , ' SELECT 1' , headers := MAP{' authorization' :' user:password' } );
0 commit comments