Skip to content

Latest commit

 

History

History
72 lines (37 loc) · 2.06 KB

File metadata and controls

72 lines (37 loc) · 2.06 KB

SqlQuery change log

1.0.0 / Unreleased

  • [Added] Configurable SQL comment removal feature with remove_comments and remove_comments_from configuration options. Supports selective removal of single-line (--) and multi-line (/* */) comments while preserving comments within quoted strings (single, double, and PostgreSQL dollar quotes). Addresses #20

  • [Deprecated]

  • [Removed]

  • [Fixed] Whitespace normalization now properly supports multiline ERB blocks. Previously, prepared_for_logs would corrupt SQL templates containing multiline ERB code blocks (e.g., <% ... %>) by normalizing whitespace before ERB processing. The new WhitespaceNormalizer class renders ERB first, then intelligently collapses whitespace while preserving content within SQL quoted strings (single quotes, double quotes, and escaped quotes).

0.7.4 / 2024-04-20

  • [Added] Remove upper restriction for rails

0.7.3 no changes

0.7.2 / 2022-01-23

  • [Added] rails 7.0 as supported version #12

0.7.1 / 2021-12-14

  • [Added] rails 6.1 as supported version #10

0.7.0 / 2020-08-04

  • [Added] support for exec_query from ActiveRecord #7

0.6.0 / 2017-03-30

  • [Added] possibility to override path where gem will look for sql file.

0.5.0 / 2016-04-26

  • [Added] possibility to overwrite default connection class and connection directly using db_connection option.

0.4.0 / 2016-01-20

  • [Added] execute will accept boolean attribute. When set to false it will use raw query instead of prepared for logs. By default it will be set to true.

0.3.0 / 2015-12-10

  • [Added] support for partials

0.2.1 / 2015-05-01

  • [Added] support for activerecord >= 3.2

  • [Deprecated]

  • [Removed]

  • [Fixed]

0.2.0 / 2015-05-01

  • [Added] First argument in initialize as sql file name with path

  • [Deprecated]

  • [Removed] sql_name and sql_path in options hash

  • [Fixed]

0.1.0 / 2015-04-27

  • [Added] support for .erb.sql extension