Skip to content
DuckDB community extension

webdavfs

Allows reading and writing files over WebDAV protocol

01 / SETUP

Install and load

Run these commands in a Haybarn SQL session. The extension is available from the community repository.

Haybarn 2.0.0 · SQL
INSTALL webdavfs FROM community;
LOAD webdavfs FROM community;

Using upstream DuckDB? Follow the maintainer’s installation instructions.

02 / QUERY

Usage example

Authenticate with any WebDAV server eg nextcloud or owncloud

SQL
-- Load the extension

-- Authenticate with any WebDAV server eg nextcloud or owncloud
CREATE SECRET my_storagebox (
  TYPE WEBDAV,
  USERNAME 'u123456',
  PASSWORD 'password',
  SCOPE 'webdav://webdav-server.example.com/'
);

-- or with Hetzner specific Storage Box
CREATE SECRET my_storagebox (
  TYPE WEBDAV,
  USERNAME 'u123456',
  PASSWORD 'password',
  SCOPE 'storagebox://u123456'
);

-- Convert local csv into parquet and upload it using WebDAV
COPY (
    FROM 'local.csv'
) TO 'storagebox://u123456/remote.parquet';

-- Read The uploaded parquet file using WebDAV
SELECT * FROM 'storagebox://u123456/remote.parquet';

Provided by midwork-finds-jobs. Not yet verified on Haybarn 2.0.0.

Sample data & setup

About this extension

DuckDB WebDAVfs extension enables seamless integration with WebDAV servers, allowing users to read from and write to remote file systems directly within DuckDB. This extension supports authentication mechanisms compatible with various WebDAV services, including Hetzner Storage Boxes.

WebDAV is nice because it builds on top of HTTP/HTTPS protocols. This enables DuckDB to leverage http 1.1 range feature to only download parts of files when needed, making it efficient for working with large datasets stored remotely.

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
midwork-finds-jobs/duckdb-webdavfs
License
MIT
Maintainers
onnimonni
Written in
C++
Build source
a32c98ef9dd2
Build definition
Community descriptor