Class: LLMDB::Adapters::Oracle
- Defined in:
- lib/llmdb/adapters/oracle.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
-
#tables ⇒ Object
Requires: gem “ruby-oci8” and Oracle Instant Client installed on the system.
Methods inherited from Base
#execute, #initialize, #table_schema
Constructor Details
This class inherits a constructor from LLMDB::Adapters::Base
Instance Method Details
#tables ⇒ Object
Requires: gem “ruby-oci8” and Oracle Instant Client installed on the system. The :database field should be the Oracle service name or TNS alias.
7 8 9 10 11 12 |
# File 'lib/llmdb/adapters/oracle.rb', line 7 def tables # Sequel's #tables returns USER_TABLES entries for Oracle — filter out system tables @db.tables.map(&:to_s).reject { |t| t.start_with?("SYS_") }.sort rescue Sequel::Error => e raise QueryError, "Failed to list tables: #{e.}" end |