---
title: "Query command for database queries and more"
url: https://daily.dev/posts/query-command-for-database-queries-and-more-i5swkhhcu
source_url: https://world.hey.com/this.week.in.rails/query-command-for-database-queries-and-more-0bee7868
type: article
source: "This Week in Rails"
published: 2026-04-17T08:23:55.643Z
updated: 2026-04-17T08:24:14.397Z
tags: ["ruby", "rails", "pwa"]
reading_time: 3
upvotes: 0
comments: 0
language: 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.

# Query command for database queries and more

**[This Week in Rails](https://daily.dev/sources/twirails)** · 3 min read · 0 upvotes · 0 comments

## Summary

This week in Rails covers several new features and fixes merged into the Rails codebase. The headline addition is a new `rails query` command that runs read-only database queries and returns structured JSON output, with subcommands like `query schema`, `query models`, and `query explain`. Other changes include appending `charset=utf-8` to Content-Type headers for static CSS and HTML files, adding an offline fallback page to the PWA scaffold, a rewrite of the Layouts and Rendering guide, a fix for IO copy stream writing to Action Controller Live Buffer, a fix for `reset_counters` with string IDs, a performance improvement in `ParameterFilter` using hash lookups for exact-match regexp filters, and stronger documentation warnings about Active Storage redirect and proxy mode security risks.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://world.hey.com/this.week.in.rails/query-command-for-database-queries-and-more-0bee7868>

## Similar posts on daily.dev

- [Query command for database queries and more](https://daily.dev/posts/query-command-for-database-queries-and-more-knykncecz) · Rails · 0 upvotes · 0 comments
- [Agents on Rails, query method and more](https://daily.dev/posts/agents-on-rails-query-method-and-more-qvbubxxei) · This Week in Rails · 0 upvotes · 0 comments
- [This Week In Rails: November 21, 2025](https://daily.dev/posts/this-week-in-rails-november-21-2025-oefahkhud) · This Week in Rails · 1 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/query-command-for-database-queries-and-more-i5swkhhcu)
