lib/updateable_views_inheritance/postgresql_adapter.rb
# Checks whether relation +name+ is a view.
Checks whether relation +name+ is a view.
Checks whether relation + name + is a view .
def is_view?(name)
          result = query(<<-SQL, name).map { |row| row[0] }
            SELECT viewname
              FROM pg_views
             WHERE viewname = '#{name}'
          SQL
          !result.empty?
        end
def is_view? ( name ) result = query ( <<-SQL , name ) . map { | row | row [ 0 ] } 
            SELECT viewname
              FROM pg_views
             WHERE viewname = ' #{ name } '
           SQL ! result . empty? end
Checks whether relation +name+ is a view.
Checks whether relation + name + is a view .
name
<not_specific>