Class: PLSQL::Schema
- Inherits:
-
Object
- Object
- PLSQL::Schema
- Defined in:
- lib/db_factory/helpers.rb
Instance Method Summary collapse
-
#find_table(*args) ⇒ Object
Returns object ID of table object.
Instance Method Details
#find_table(*args) ⇒ Object
Returns object ID of table object. Examples:
plsql.find_table('scott.my_table')
plsql.find_table('scott', 'my_table')
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/db_factory/helpers.rb', line 6 def find_table(*args) if args.size == 1 table_owner = args[0].split('.')[0].upcase table_name = args[0].split('.')[1].upcase else table_name = args[0] table_owner = args[1] end find_database_object(table_name, table_owner) end |