Skip to content
Tech News
← Back to articles

DuckPGQ – A DuckDB community extension for graph workloads

read original more articles
Why This Matters

DuckPGQ enhances DuckDB by enabling high-performance, SQL-based graph query capabilities aligned with the SQL/PGQ standard. This extension simplifies the integration of graph analytics into existing workflows, making advanced graph processing more accessible for developers and data analysts. Its open-source nature and ease of installation position it as a valuable tool for diverse applications across industries.

Key Takeaways

DuckPGQ DuckPGQ is a DuckDB community extension for graph workloads that supports the SQL/PGQ standard. Leveraging the power of DuckDB to bring high-performance, SQL-based graph query capabilities directly to your analytical workflows.

Install and Load DuckPGQ

CLI Python NodeJS R Java INSTALL duckpgq FROM community ; LOAD duckpgq ; import duckdb conn = duckdb . connect () conn . install_extension ( "duckpgq" , repository = "community" ) conn . load_extension ( "duckpgq" ) import { DuckDBInstance } from '@duckdb/node-api' ; const instance = await DuckDBInstance . create (); const connection = await instance . connect (); await connection . run ( "INSTALL duckpgq FROM community" ); await connection . run ( "LOAD duckpgq" ); library ( duckdb ) con <- dbConnect ( duckdb ()) dbExecute ( con , "INSTALL duckpgq FROM community" ) dbExecute ( con , "LOAD duckpgq" ) Connection conn = DriverManager . getConnection ( "jdbc:duckdb:" ); Statement st = conn . createStatement (); st . execute ( "INSTALL duckpgq FROM community" ); st . execute ( "LOAD duckpgq" );

Key Features

SQL/PGQ Standard

Supports graph pattern matching with SQL/PGQ, following the SQL:2023 standard.

Supports graph pattern matching with SQL/PGQ, following the SQL:2023 standard. High Performance

Leverages DuckDB for efficient, in-process graph analytics.

Leverages DuckDB for efficient, in-process graph analytics. Easy To Install

Seamlessly integrate with DuckDB through a simple setup process, requiring no dependencies.

... continue reading