Sha256: ab7382f0d94ce26566a4d8b8f0b7bf426bbbd74fa41f403ea60504ff6a3e3bfc

Contents?: true

Size: 1.1 KB

Versions: 29

Compression:

Stored size: 1.1 KB

Contents

# -*- coding: utf-8 -*-
#
# Copyright (C) 2012  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

module Groonga
  class Database
    # @return [Array<Groonga::Table>] tables defined in the database.
    def tables
      find_all do |object|
        object.is_a?(Groonga::Table)
      end
    end

    def dump_index(output_directory)
      each do |object|
        next unless object.is_a?(Groonga::IndexColumn)
        object.dump(output_directory)
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
rroonga-3.0.9-x64-mingw32 lib/groonga/database.rb
rroonga-3.0.9-x86-mingw32 lib/groonga/database.rb
rroonga-3.0.9 lib/groonga/database.rb
rroonga-3.0.8-x86-mingw32 lib/groonga/database.rb
rroonga-3.0.8-x64-mingw32 lib/groonga/database.rb
rroonga-3.0.8 lib/groonga/database.rb
rroonga-3.0.7-x86-mingw32 lib/groonga/database.rb
rroonga-3.0.7 lib/groonga/database.rb
rroonga-3.0.6-x86-mingw32 lib/groonga/database.rb
rroonga-3.0.6 lib/groonga/database.rb
rroonga-3.0.5-x86-mingw32 lib/groonga/database.rb
rroonga-3.0.5 lib/groonga/database.rb
rroonga-3.0.4-x86-mingw32 lib/groonga/database.rb
rroonga-3.0.4 lib/groonga/database.rb
rroonga-3.0.3 lib/groonga/database.rb
rroonga-3.0.2-x86-mingw32 lib/groonga/database.rb
rroonga-3.0.2 lib/groonga/database.rb
rroonga-3.0.1-x86-mingw32 lib/groonga/database.rb
rroonga-3.0.1 lib/groonga/database.rb
rroonga-3.0.0-x86-mingw32 lib/groonga/database.rb