Class: Groonga::DatabaseInspector
- Inherits:
-
Object
- Object
- Groonga::DatabaseInspector
- Defined in:
- lib/groonga/database-inspector.rb
Overview
It is a class that inspects database. You can know details metadata of the database.
Defined Under Namespace
Classes: Options
Instance Method Summary collapse
-
#initialize(database, options = nil) ⇒ DatabaseInspector
constructor
A new instance of DatabaseInspector.
-
#report(output = nil) ⇒ Object
Report inspected result of the database.
Constructor Details
#initialize(database, options = nil) ⇒ DatabaseInspector
Returns a new instance of DatabaseInspector.
24 25 26 27 |
# File 'lib/groonga/database-inspector.rb', line 24 def initialize(database, =nil) @database = database @options = || Options.new end |
Instance Method Details
#report(output = nil) ⇒ Object
Report inspected result of the database.
33 34 35 36 37 |
# File 'lib/groonga/database-inspector.rb', line 33 def report(output=nil) output ||= $stdout reporter = Reporter.new(@database, @options, output) reporter.report end |