Skip to content

v1.3.0

Choose a tag to compare

@flash-gordon flash-gordon released this 05 May 22:04

Added

  • New Relation#exist? predicate checks if the relation has at least one tuple (flash-gordon)
  • Support for JSONB transformations and queries using native DSL (flash-gordon)
  • Add ROM::SQL::Attribute#not for negated boolean equality expressions (AMHOL)
  • Add ROM::SQL::Attribute#! for negated attribute's sql expressions (solnic)
  • Inferrer gets limit constraints for string data types and stores them in type's meta (v-kolesnikov)

Fixed

  • Fixed usage of PostgreSQL's commands with a composite relation (flash-gordon)
  • Translation of true/false/nil equality checks to is/is not SQL statements in ROM::SQL::Attribute#is (AMHOL)
  • associates command plugin coerces parent collections to hashes correctly (aarek+solnic)
  • by_pk works correctly even when PK is not projected (solnic)

Changed

  • Global private interface SQL::Gateway.instance has been deprecated. Now if you run migrations
    with ROM you should set up a ROM config in the db:setup task with something similar to

      namespace :db
        task :setup do
          ROM::SQL::RakeSupport.env = ROM::Configuration.new(:sql, ENV['DATABASE_URL'])
        end
      end

Compare v1.2.2...v1.3.0