Class: ActiveRecord::ConnectionAdapters::OracleAdapter
- Inherits:
-
AbstractAdapter
- Object
- AbstractAdapter
- ActiveRecord::ConnectionAdapters::OracleAdapter
- Defined in:
- lib/empty_eye/active_record/connection_adapters/oracle_adapter.rb
Instance Method Summary collapse
-
#tables(name = nil) ⇒ Object
:nodoc:.
-
#tables_without_views(name = nil) ⇒ Object
:nodoc:.
Instance Method Details
#tables(name = nil) ⇒ Object
:nodoc:
5 6 7 8 9 10 11 |
# File 'lib/empty_eye/active_record/connection_adapters/oracle_adapter.rb', line 5 def tables(name = nil) #:nodoc: tables = [] execute("SELECT TABLE_NAME FROM USER_TABLES", name).each { |row| tables << row[0] } views = [] execute("SELECT VIEW_NAME FROM USER_VIEWS", name).each { |row| views << row[0] } tables | views end |
#tables_without_views(name = nil) ⇒ Object
:nodoc:
13 14 15 16 17 |
# File 'lib/empty_eye/active_record/connection_adapters/oracle_adapter.rb', line 13 def tables_without_views(name = nil) #:nodoc: tables = [] execute("SELECT TABLE_NAME FROM USER_TABLES", name).each { |row| tables << row[0] } tables end |