Module: PGExaminer
- Defined in:
- lib/pg_examiner.rb,
lib/pg_examiner/base.rb,
lib/pg_examiner/result.rb,
lib/pg_examiner/version.rb,
lib/pg_examiner/result/item.rb,
lib/pg_examiner/result/index.rb,
lib/pg_examiner/result/table.rb,
lib/pg_examiner/result/column.rb,
lib/pg_examiner/result/schema.rb,
lib/pg_examiner/result/trigger.rb,
lib/pg_examiner/result/function.rb,
lib/pg_examiner/result/language.rb,
lib/pg_examiner/result/sequence.rb,
lib/pg_examiner/result/extension.rb,
lib/pg_examiner/result/constraint.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
'0.4.7'
Class Method Summary collapse
Class Method Details
.examine(connection, schema = nil) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/pg_examiner.rb', line 8 def examine(connection, schema = nil) result = Result.new(connection) if schema result.schemas.find { |s| s.name == schema.to_s } else result end end |