module ROM::SQL::Plugin::Nullify

Nullify relation by

@api public

Public Instance Methods

nullify() click to toggle source

Returns a relation that will never issue a query to the database. It implements the null object pattern for relations. Dataset#nullify doesn’t work on JRuby, hence we fall back to SQL

@api public

# File lib/rom/sql/plugin/nullify.rb, line 16
def nullify
  where { `1 = 0` }
end