module RailsSqlViews4::ConnectionAdapters::OracleEnhancedAdapter
Public Instance Methods
supports_views?()
click to toggle source
Returns true as this adapter supports views.
# File lib/rails_sql_views4/connection_adapters/oracleenhanced_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/oracleenhanced_adapter.rb, line 29 def view_select_statement(view, name=nil) cursor = execute("SELECT TEXT FROM USER_VIEWS WHERE VIEW_NAME = '#{view}'", name) if row = cursor.fetch return row[0] else raise "No view called #{view} found" end end