Skip to content
DuckDB community extension

onager

A DuckDB extension for graph data analytics

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 onager FROM community;
LOAD onager FROM community;

Try it in a temporary SQL session with onager already loaded. Queries run in this tab; examples using files or services need their own setup.

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

02 / QUERY

Usage example

1. Check extension version

SQL
-- 1. Check extension version
SELECT onager_version();

-- 2. Create a graph
SELECT onager_create_graph('demo', true);

-- 3. Add nodes and edges
SELECT onager_add_node('demo', 1);
SELECT onager_add_node('demo', 2);
SELECT onager_add_edge('demo', 1, 2, 1.0);

-- 4. Run analytics (e.g., node count)
SELECT onager_node_count('demo');

-- 5. Cleanup
SELECT onager_drop_graph('demo');

Provided by CogitatorTech. Not yet verified on Haybarn 2.0.0.

Sample data & setup

About this extension

Onager is a graph analytics toolbox for DuckDB. For more information, visit the GitHub repository or the Onager documentation. You can also try Onager in your browser here.

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
CogitatorTech/onager
License
MIT OR Apache-2.0
Maintainers
habedi
Written in
Rust & C++
Build source
c45146bc4b25
Build definition
Community descriptor