Bot releases are visible (Hide)
Relation#lock
, row-level locking using the SELECT FOR UPDATE
clause (flash-gordon)
get
and get_text
methods for the PG::JSON
type (flash-gordon)
Support for converting data type with CAST
using the function DSL (flash-gordon)
users.select { string::cast(id, 'varchar').as(:id_str) }
Support forEXISTS
(v-kolesnikov)
subquery = tasks.where(tasks[:user_id].qualified => users[:id].qualified)
users.where { exists(subquery) }
WHERE
clause. Be sure you're using it wisely and don't call it on large datasets ;) (flash-gordon)Void
type for calling functions without returning value (flash-gordon)PG::Array
transformations and queries (flash-gordon)Relation#exist?
predicate checks if the relation has at least one tuple (flash-gordon)ROM::SQL::Attribute#not
for negated boolean equality expressions (AMHOL)ROM::SQL::Attribute#!
for negated attribute's sql expressions (solnic)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)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
RelationProxy
instance from rom-repository
(davydovanton)parent
option in Command#with_association
(solnic)