Module: Sequel::Oracle::DatabaseMethods

Module | Sequel::Oracle::DatabaseMethods
In: | lib/sequel_core/adapters/shared/oracle.rb

### Methods

table_exists? tables

### Public Instance methods

table_exists?(name)

[Source]

        # File lib/sequel_core/adapters/shared/oracle.rb, line 9
     9:       def table_exists?(name)
    10:         from(:tab).filter(:tname =>dataset.send(:input_identifier, name), :tabtype => 'TABLE').count > 0
    11:       end

tables(opts={})

[Source]

       # File lib/sequel_core/adapters/shared/oracle.rb, line 4
    4:       def tables(opts={})
    5:         ds = from(:tab).server(opts[:server]).select(:tname).filter(:tabtype => 'TABLE')
    6:         ds.map{|r| ds.send(:output_identifier, r[:tname])}
    7:       end

[Validate]