Class: LLMDB::Adapters::Oracle

Inherits:
Base
  • Object
show all
Defined in:
lib/llmdb/adapters/oracle.rb

Constant Summary

Constants inherited from Base

Base::SAFE_PREFIXES

Instance Method Summary collapse

Methods inherited from Base

#execute, #initialize, #table_schema

Constructor Details

This class inherits a constructor from LLMDB::Adapters::Base

Instance Method Details

#tablesObject

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.message}"
end