DuckCon #7

Native app development using DuckDB

Milla Henriksson · DuckCon #7
8
sections
11
slides
DuckDBNative appsTauri / RustMicrosoft FabricOAuth / OLAPDelta Lake
Watch on YouTube ↗
01 / Intro

frame_00m00s.png
frame_00m00s.png
frame_00m06s.png
frame_00m06s.png
02 / Requirements

frame_01m18s.png
frame_01m18s.png
More detail

Tauri is a framework for native apps with a Rust-based backend; DuckDB runs embedded in Tauri's Rust process via the Rust client API.

03 / Concurrency

frame_01m27s.png
frame_01m27s.png
frame_02m06s.png
frame_02m06s.png
More detail

start_db_thread spawns a worker looping over an MPSC receiver; init_db runs ATTACH ... ENCRYPTION_KEY / ENCRYPTION_CIPHER 'GCM' and CREATE TABLE IF NOT EXISTS.

04 / Auth

frame_02m36s.png
frame_02m36s.png
05 / Upload

frame_03m06s.png
frame_03m06s.png
06 / Insert

frame_03m12s.png
frame_03m12s.png
frame_03m18s.png
frame_03m18s.png
More detail

Uses the Delta and Azure extensions; the remote is attached as TYPE delta over an 'abfss://.../Tables/measurement' URL.

07 / Sync back

frame_03m36s.png
frame_03m36s.png
08 / Takeaways

frame_04m12s.png
frame_04m12s.png

Key Takeaways