module RailsSqlViews4::ConnectionAdapters::OciAdapter

Public Instance Methods

supports_views?() click to toggle source

Returns true as this adapter supports views.

# File lib/rails_sql_views4/connection_adapters/oci_adapter.rb, line 5
def supports_views?
  true
end
view_select_statement(view, name=nil) click to toggle source

Get the view select statement for the specified table.

# File lib/rails_sql_views4/connection_adapters/oci_adapter.rb, line 23
def view_select_statement(view, name=nil)
  row = execute("SELECT TEXT FROM USER_VIEWS WHERE VIEW_NAME = '#{view}'", name).each do |row|
    return row[0]
  end
  raise "No view called #{view} found"
end