RubyGems Navigation menu

appquery 0.4.0

Improving introspection and testability of raw SQL queries in Rails This gem improves introspection and testability of raw SQL queries in Rails by: - ...providing a separate query-folder and easy instantiation A query like `AppQuery[:some_query]` is read from app/queries/some_query.sql. - ...providing options for rewriting a query: Query a CTE by replacing the select: query.select_all(select: "select * from some_cte").entries ...similarly, query the end result (i.e. CTE `_`): query.select_all(select: "select count(*) from _").entries - ...providing (custom) casting: AppQuery("select array[1,2]").select_value(cast: true) custom deserializers: AppQuery("select '1' id").select_all(cast: {"id" => ActiveRecord::Type::Integer.new}).entries - ...providing spec-helpers and generators

Gemfile:
=

安裝:
=

版本列表:

  1. 0.4.0 December 15, 2025 (25.0 KB)
  2. 0.4.0.rc1 December 15, 2025 (21.0 KB)
  3. 0.3.0 June 02, 2025 (18.5 KB)
  4. 0.2.0 November 13, 2024 (16.0 KB)
  5. 0.1.0 October 14, 2024 (6.5 KB)

Development 相依性套件 (1):

appraisal >= 0

擁有者:

推送者:

作者:

  • Gert Goet

SHA 256 總和檢查碼:

=

總下載次數 1,404

這個版本 97

版本发布:

授權:

MIT

Ruby 版本需求: >= 3.2.0

相關連結: