{"repo":"sbrunk/duckdb.mojo","free":true,"listed":false,"github":"https://github.com/sbrunk/duckdb.mojo","clone":"git clone https://github.com/sbrunk/duckdb.mojo.git","description":"Mojo Bindings for DuckDB","language":"Mojo","stars":24,"topics":["duckdb","mojo"],"license":"MIT","category":"data-pipelines","readme_excerpt":"duckdb.mojo Mojo bindings for DuckDB. duckdb.mojo can be used in two ways: 1. Client API : query DuckDB from Mojo, register scalar/aggregate/table functions (UDFs), and process results with SIMD vectorization. 2. Extension development : build DuckDB extensions written in Mojo that can be loaded with LOAD . See the demo extension for a working example. 3. Accelerate DuckDB : drop-in Mojo kernels for existing queries. The CPU/SIMD built-in overrides (mojo-kernel-overrides, dependency-free) and the GPU offload (mojo-gpu-operator) speed up aggregates, math, and vector search. See Accelerating DuckDB. 10 minute presentation at the MAX & Mojo community meeting Examples Client API Result.show() renders every DuckDB type, including DECIMAL , the date/time family, UUID , INTERVAL , BIT , BLOB , ENUM , and nested LIST / STRUCT / MAP . Relation API (lazy, composable) con.sql(...) , con.table(...) / con.view(...) , and the read readers return a lazy Relation : a query you build with chainable transforms that runs only at a terminal ( show / fetchall / get[T] / to table /...). It mirrors DuckDB's Python relational API and reuses the typed decoding shown above. Connection lifecycle, transactions, and errors Build nested types with list type , map type , array type , struct type , decimal type , and enum type . Parameterized queries Bind parameters positionally ( ? / $1 ) or by name ( $name ). Plain Mojo scalars are bound directly; Optional[T] binds SQL NULL for None : Module-level API and ","default_branch":null,"files":null,"tree":[],"storefront":"/r/sbrunk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sbrunk/duckdb.mojo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}