<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/tarellel-activerecord-duckdb-a-duckdb-database-adapter-for-activerecord-vyqtfuok9" -->

---
title: tarellel/activerecord-duckdb: A DuckDB database adapter...
description: A Ruby gem that provides DuckDB database adapter integration for ActiveRecord, enabling Rails applications to use DuckDB as their database backend. The gem...
canonical: https://daily.dev/posts/tarellel-activerecord-duckdb-a-duckdb-database-adapter-for-activerecord-vyqtfuok9
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: tarellel/activerecord-duckdb: A DuckDB database adapter for ActiveRecord | daily.dev
og:description: A Ruby gem that provides DuckDB database adapter integration for ActiveRecord, enabling Rails applications to use DuckDB as their database backend. The gem...
og:url: https://daily.dev/posts/tarellel-activerecord-duckdb-a-duckdb-database-adapter-for-activerecord-vyqtfuok9
og:image: https://api.daily.dev/og/posts/VYQTfUOK9.png
og:image:alt: tarellel/activerecord-duckdb: A DuckDB database adapter for ActiveRecord
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# tarellel/activerecord-duckdb: A DuckDB database adapter for ActiveRecord

**[Ruby Flow](https://daily.dev/sources/rubyflow)** · 3 min read · 1 upvotes · 0 comments

## Summary

A Ruby gem that provides DuckDB database adapter integration for ActiveRecord, enabling Rails applications to use DuckDB as their database backend. The gem supports standard ActiveRecord operations, database configuration through database.yml, and includes setup instructions for both file-based and in-memory databases. Currently in development with some ActiveRecord features still being implemented and tested.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/tarellel/activerecord-duckdb>

---

Tags: [#ruby](https://daily.dev/tags/ruby), [#rails](https://daily.dev/tags/rails), [#duckdb](https://daily.dev/tags/duckdb)

[View this post on daily.dev](https://daily.dev/posts/tarellel-activerecord-duckdb-a-duckdb-database-adapter-for-activerecord-vyqtfuok9)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"tarellel/activerecord-duckdb: A DuckDB database adapter for ActiveRecord","url":"https://daily.dev/posts/tarellel-activerecord-duckdb-a-duckdb-database-adapter-for-activerecord-vyqtfuok9","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/tarellel-activerecord-duckdb-a-duckdb-database-adapter-for-activerecord-vyqtfuok9"},"datePublished":"2025-06-21T03:23:28.731Z","dateModified":"2025-06-21T03:23:48.902Z","description":"A Ruby gem that provides DuckDB database adapter integration for ActiveRecord, enabling Rails applications to use DuckDB as their database backend. The gem...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/15310f422808bc3d43c023580220ea43?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/15310f422808bc3d43c023580220ea43?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"Ruby Flow","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Ruby Flow","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a21aaa8bcbbf448193a016895c90a0e1","url":"https://daily.dev/sources/rubyflow"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/tarellel-activerecord-duckdb-a-duckdb-database-adapter-for-activerecord-vyqtfuok9","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ruby,rails,duckdb","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ruby Flow","item":"https://daily.dev/sources/rubyflow"},{"@type":"ListItem","position":3,"name":"tarellel/activerecord-duckdb: A DuckDB database adapter for ActiveRecord"}]}
```

