Ruby SQL

Open-source Ruby projects categorized as SQL

Top 23 Ruby SQL Projects

  1. ransack

    Object-based searching.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. Blazer

    Business intelligence made simple

  4. Scenic

    Versioned database views for Rails

    Project mention: Query multiple tables easily with Rails and Postgres Views | dev.to | 2024-07-31

    1) First, let's install the Scenic gem. It's not required, but it gives us nice ways to create and manage views.

  5. ROM

    Data mapping and persistence toolkit for Ruby

  6. Lol DBA

    lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.

  7. SQL Server

    SQL Server Adapter For Rails

  8. motor-admin-rails

    Low-code Admin panel and Business intelligence Rails engine. No DSL - configurable from the UI. Rails Admin, Active Admin, Blazer modern alternative.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. TinyTDS

    TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.

  11. BabySqueel

    :pig: An expressive query DSL for Active Record

  12. boxcars

    Building applications with composability using Boxcars with LLM's. Inspired by LangChain.

  13. occams-record

    The missing high-efficiency query API for ActiveRecord

  14. PpSql

    Rails ActiveRecord SQL queries log beautifier

  15. ActiveRecord Where Assoc

    Make ActiveRecord do conditions on your associations

  16. rom-sql

    SQL support for rom-rb

  17. timescaledb-ruby

    The timescaledb gem. Pack of helpers to work with TimescaleDB extension in Ruby.

    Project mention: ⚙️ Building a better Ruby ORM for time series and analytics | dev.to | 2025-02-06

    Also, GitHub ⭐s for our Ruby library are very much welcome!

  18. fluent-plugin-sql

    SQL input/output plugin for Fluentd

    Project mention: SafeLine's FAQ Part 4: Other Issues | dev.to | 2024-08-23

    Refer to the documentation for more details.

  19. rom-factory

    Data generator with support for persistence backends

    Project mention: Hanami's place in the world of Rails | dev.to | 2024-05-20

    If you use ROM, you won't be able to use factory bot, instead there is rom factory

  20. activerecord-originator

    A RubyGem adding SQL comments to indicate the origin of the SQL

  21. pg-locks-monitor

    A simple tool to observe PostgreSQL database locks in Rails apps.

    Project mention: A simple tool to observe PostgreSQL database locks in Rails apps | news.ycombinator.com | 2024-09-05
  22. acts_as_nosql

    Allows to treat JSON fields of postgres and mysql as real fields

  23. active_record_distinct_on

    Support for `DISTINCT ON` statements when querying with ActiveRecord

  24. ThinkDB

    ThinkDB is an easy-to-use SQL client that makes working with your databases simpler and more efficient. Whether you're a database pro or just getting started, ThinkDB's intuitive interface helps you explore, query, and manage your data with ease.

    Project mention: Rails for Everything | news.ycombinator.com | 2025-01-01

    With sqlite and docker.. rails apps are easy to share.. my last project is easy to install and use because of rails https://github.com/ThinkThinkAI/ThinkDB

    # change directory_on_your_machine_for_think_db_storage

  25. ActiveRecord Setops

    Union, Intersect, and Difference set operations for ActiveRecord (also, SQL's UnionAll).

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Ruby SQL discussion

Log in or Post with

Ruby SQL related posts

  • ⚙️ Building a better Ruby ORM for time series and analytics

    3 projects | dev.to | 6 Feb 2025
  • liquibase alternatives - Logidze and dolt

    3 projects | 19 Nov 2024
  • SQLite on Rails: The how and why of optimal performance

    6 projects | news.ycombinator.com | 11 Sep 2024
  • Query multiple tables easily with Rails and Postgres Views

    1 project | dev.to | 31 Jul 2024
  • How to avoid N+1 query using SQL views (materialized) in Rails application

    1 project | dev.to | 14 May 2024
  • Blazer: Business Intelligence Made Simple

    4 projects | news.ycombinator.com | 27 Feb 2024
  • Is Tableau Dead?

    3 projects | news.ycombinator.com | 26 Feb 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 13 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source SQL projects in Ruby? This list will help you:

# Project Stars
1 ransack 5,759
2 Blazer 4,654
3 Scenic 3,507
4 ROM 2,095
5 Lol DBA 1,584
6 SQL Server 979
7 motor-admin-rails 799
8 TinyTDS 618
9 BabySqueel 502
10 boxcars 451
11 occams-record 372
12 PpSql 270
13 ActiveRecord Where Assoc 239
14 rom-sql 218
15 timescaledb-ruby 111
16 fluent-plugin-sql 111
17 rom-factory 81
18 activerecord-originator 73
19 pg-locks-monitor 63
20 acts_as_nosql 35
21 active_record_distinct_on 34
22 ThinkDB 27
23 ActiveRecord Setops 22

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Ruby is
the 12th most popular programming language
based on number of references?