Sha256: 31295e9d274b469aaf7321ba55c666cb5dd012987fb0288c8b2cccccf31776b3

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013  Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1 as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

require "ostruct"
require "optparse"
require "pathname"

require "groonga"

options = OpenStruct.new

parser = OptionParser.new
parser.banner += " DB_PATH"
args = parser.parse!(ARGV)

if args.size != 1
  puts(parser.help)
  exit(false)
end
db_path = args[0]

Groonga::Database.open(db_path) do |database|
  inspector = Groonga::DatabaseInspector.new(database)
  inspector.report
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rroonga-3.1.0-x64-mingw32 bin/groonga-database-inspect
rroonga-3.1.0-x86-mingw32 bin/groonga-database-inspect
rroonga-3.1.0 bin/groonga-database-inspect