v1.3.0
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#notfor 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/nilequality checks tois/is notSQL statements inROM::SQL::Attribute#is(AMHOL) associatescommand plugin coerces parent collections to hashes correctly (aarek+solnic)by_pkworks correctly even when PK is not projected (solnic)
Changed
-
Global private interface
SQL::Gateway.instancehas been deprecated. Now if you run migrations
with ROM you should set up a ROM config in thedb:setuptask with something similar tonamespace :db task :setup do ROM::SQL::RakeSupport.env = ROM::Configuration.new(:sql, ENV['DATABASE_URL']) end end