-   [](https://platform.exaloop.io/)
-   Databases
-   DuckDB

# DuckDB

Run custom calculations inside DuckDB queries while SQL handles filtering, joins, and aggregation. Functions compiled with Codon execute natively, without a Python callback for each row.

Choose a [loadable extension](https://platform.exaloop.io/db/duckdb/extension/) for an existing DuckDB CLI or Python workflow. For a standalone executable, [embed DuckDB](https://platform.exaloop.io/db/duckdb/client/) and register the same function directly in the application.

## Choose a Guide

-   [Client applications](https://platform.exaloop.io/db/duckdb/client/): query an embedded database and process results in batches. No database server is needed.
-   [SQL extensions](https://platform.exaloop.io/db/duckdb/extension/): call your Codon functions from DuckDB queries, including its Python client.
-   [Deployment](https://platform.exaloop.io/db/duckdb/deployment/): package an application or install an extension with its runtime libraries.

Install the [all-SDK distribution](https://platform.exaloop.io/start/distribution/) before starting. For SQL types and API signatures, use the [DuckDB reference](https://platform.exaloop.io/db/reference/#duckdb).

Source: https://platform.exaloop.io/db/duckdb/
