Skip to content

DuckDB Extension

Fuzzycomplete

Add fuzzy Tab completion to the DuckDB CLI. Find SQL keywords and table names from abbreviated input, including names in attached databases.

52,553
extension loads · last 90 days
On this page

Complete abbreviated names while writing SQL

Fuzzycomplete changes Tab completion in the interactive DuckDB CLI. It ranks keywords and identifiers by how well they match the characters you typed, including abbreviated names and characters at word boundaries.

Use it when you explore unfamiliar schemas or work across several attached databases. Suggestions can include qualified names from those catalogs. It changes the CLI’s input experience; for comparing strings stored in tables, use RapidFuzz instead.

Example

Enable fuzzy completion in the CLI

Load the extension and create a sample table. Then use the CLI’s Tab key to complete its name.

Before you run it: Use the interactive DuckDB CLI. This example was checked with DuckDB 1.5.6 and Fuzzycomplete build 8b89b19 from the community repository. If you installed it previously, update and verify completion first.

Run this example in the DuckDB CLI or a native client.

SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
  WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL fuzzycomplete FROM query_farm;
LOAD fuzzycomplete FROM query_farm;

CREATE TEMP TABLE customer_orders (id INTEGER);

-- At the next CLI prompt, type SELECT * FROM cust and press Tab.

Tab completion is an interactive action, so there is no query-result table here. Loading this extension in Python, JDBC, or another embedded client does not add a CLI input loop.

Common tasks

Deep Dive

Technical Details

Reference

Extension Contents

Quick reference to all available functions and settings organized by category.

Autocomplete
sql_auto_complete() Object type: Table function Return ranked autocomplete suggestions for a partial SQL string using the VS-Code-derived fuzzy matcher.

API Reference

Function Reference

Practical Examples

Cookbook

Real-world recipes and patterns for common use cases.

Platform Support

Compatibility

Extension availability may vary by platform and DuckDB version. Check below to ensure this extension supports your environment before installation.

Quick Facts

Release status Stable
Software License MIT
Pricing Free
Written In Rust
Source Available Yes
View on GitHub
Usage
52,553
loads · last 90 days

Platforms

DuckDB 2.0.0

  • Linux x86_64aarch64
  • Linux (musl) Not available
  • macOS Apple Silicon
  • Windows x86_64x86_64 (MinGW)
  • WASM Not available
Compiled binary sizes
Platform Architecture Size
Linux x86_64 5.04 MB
Linux aarch64 4.37 MB
macOS Apple Silicon 2.98 MB
Windows x86_64 10.26 MB
Windows x86_64 (MinGW) 19.05 MB

Compressed download sizes for the release shown above.

DuckDB & Haybarn

Release calendar
  • DuckDB v2.0.0 Query.Farm repository Supported
  • Haybarn v1.5.6 Built-in community repository Supported

Browser examples use Haybarn-Wasm 2.0.0-rc12.

Checked .

Learn and explore

Tutorials and articles

Writing about Fuzzycomplete: how it works, what changed, and why.