Provides a hello world example demo from the Rust-based extension template
Maintainer(s):
samansmink,
mlafeldt
Compatibility Matrix
This table covers all DuckDB releases that have not reached end-of-life, including LTS releases, and shows the 2 most recent patch releases of each. Older patch releases are not listed, but the extension may be available for them as well.
| Platform | 1.5.5 | 1.5.6 | 2.0.0 | 2.0.1 |
|---|---|---|---|---|
| Linux AMD64 | ||||
| Linux ARM64 | ||||
| macOS AMD64 | ||||
| macOS ARM64 | ||||
| Windows AMD64 | ||||
| Windows ARM64 | ||||
| WebAssembly |
Installing and Loading
INSTALL rusty_quack FROM community;
LOAD rusty_quack;
Example
FROM rusty_quack(['world']);
About rusty_quack
The quack extension is based on DuckDB's Rust Extension Template, and it's a great starting point to get started building DuckDB extensions in Rust.
Added Functions
| function_name | function_type | description | comment | examples |
|---|---|---|---|---|
| duck_count | pragma | Add the 🦆 in ducks to a running total and return the total. | NULL | [PRAGMA duck_count('🦆🦆')] |
| glaze | table_macro | A table macro with one row expressing how we feel about Rust. | NULL | [SELECT * FROM glaze()] |
| read_quackfile | table | Read a quackfile as VARCHAR columns column0, column1, …; FROM 'path.quackfile' calls it too. | NULL | [SELECT * FROM read_quackfile('ducks.quackfile'), SELECT * FROM 'ducks.quackfile'] |
| rusty_echo | scalar | Echo back the input you provided, but with a rusty twist! | NULL | [SELECT rusty_echo('Jane')] |
| rusty_longest | aggregate | The longest non-NULL string in the group; ties go to the lexicographically smaller one. | NULL | [SELECT rusty_longest(name) FROM (VALUES ('a'), ('ccc'), ('bb')) t(name)] |
| rusty_quack | table | One row per name, last name first, with a rotating icon and the names seen so far. | NULL | [SELECT * FROM rusty_quack(['Jane', 'Doe', 'Loves', 'Ducks'])] |
| rusty_sequence | table | count rows of i = 0, step, 2*step, … with a label; filters on i < constant are pushed into the scan. | NULL | [SELECT i FROM rusty_sequence(10000) WHERE i < 10, SELECT * FROM rusty_sequence(3, step := 10)] |
Overloaded Functions
This extension does not add any function overloads.
Added Types
| type_name | type_size | logical_type | type_category | internal |
|---|---|---|---|---|
| LIST | 16 | LIST | COMPOSITE | true |
| QUACK | 16 | VARCHAR | STRING | true |
Added Settings
| name | description | input_type | scope | aliases | typed_value |
|---|---|---|---|---|---|
| quack_emojis | The list of emojis to use for the quack table function | VARCHAR[] | GLOBAL | [] | [🐤, 🦀, 🐥] |
| temp_directory | Set the directory to which temporary files are written. | VARCHAR | GLOBAL | [] | post.db.tmp |
© 2026 DuckDB Foundation, Amsterdam NL