Choose File via Native File Dialog

April 6, 2025 ยท View on GitHub

SELECT * FROM read_csv(choose_file());

https://github.com/user-attachments/assets/2067ff33-5159-44cd-82e3-c117bcbdf9e0

Option

You can filter files by the extension. For example, in order to show CSV files only, you can specifies this:

choose_file('csv')

Installation

file_dialog is available from the Community Extension repository.

INSTALL file_dialog FROM community;
LOAD file_dialog;

Development

make configure
make debug
LOAD './build/debug/extension/file_dialog/file_dialog.duckdb_extension';