class Database

Attributes

connection[R]
name[R]
relations[R]
tables[R]

Public Class Methods

new(name) click to toggle source
# File lib/peekdb/database.rb, line 5
def initialize(name)
  @name = name

  begin
    open_connection(@name)
    puts "... Inspecting database #{@name}"

    find_tables
    puts "... Found #{@tables.size} tables"

    find_relations
    puts "... Found #{@relations.size} relations"
  rescue Exception => e
    puts "... Error FATAL: #{e}"
    exit(1)
  end
end

Private Instance Methods

find_relations() click to toggle source
# File lib/peekdb/database.rb, line 33
def find_relations
  raise NotImplementedError.new("Feature Not Yet Implemented")
end
find_tables() click to toggle source
# File lib/peekdb/database.rb, line 29
def find_tables
  raise NotImplementedError.new("Feature Not Yet Implemented")
end
open_connection(database_name) click to toggle source
# File lib/peekdb/database.rb, line 25
def open_connection(database_name)
  raise NotImplementedError.new("Feature Not Yet Implemented")
end