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:
=

installation:
=

Versions:

  1. 0.7.0 January 08, 2026 (38,5 ko)
  2. 0.7.0.rc6 January 08, 2026 (38 ko)
  3. 0.7.0.rc5 January 08, 2026 (38,5 ko)
  4. 0.7.0.rc4 January 08, 2026 (39 ko)
  5. 0.7.0.rc3 January 08, 2026 (35,5 ko)
  6. 0.4.0 December 15, 2025 (25 ko)
Voir toutes les versions (20)

Dépendances de Development (1):

appraisal >= 0

Propriétaires:

Pushed by:

Auteurs:

  • Gert Goet

Total de contrôle SHA 256:

=

Total de téléchargements 4 736

Pour cette version 145

Version publiée:

License:

MIT

Version de Ruby requise: >= 3.2.0

Liens: