Sha256: c022a836ab38d1c2b1548de28b453f052f5b9aecaac1c16b96d7151b82092853

Contents?: true

Size: 630 Bytes

Versions: 11

Compression:

Stored size: 630 Bytes

Contents

# frozen_string_literal: true

require_relative "../../../app/command"

module Hanami
  module CLI
    module Commands
      module App
        module DB
          # @api private
          module Structure
            # @api private
            class Dump < App::Command
              desc "Dumps database structure to db/structure.sql file"

              # @api private
              def call(*)
                measure("#{database.name} structure dumped to db/structure.sql") do
                  database.dump_command
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hanami-cli-2.1.1 lib/hanami/cli/commands/app/db/structure/dump.rb
hanami-cli-2.1.0 lib/hanami/cli/commands/app/db/structure/dump.rb
hanami-cli-2.1.0.rc3 lib/hanami/cli/commands/app/db/structure/dump.rb
hanami-cli-2.1.0.rc2 lib/hanami/cli/commands/app/db/structure/dump.rb
hanami-cli-2.1.0.rc1 lib/hanami/cli/commands/app/db/structure/dump.rb
hanami-cli-2.1.0.beta2 lib/hanami/cli/commands/app/db/structure/dump.rb
hanami-cli-2.1.0.beta1 lib/hanami/cli/commands/app/db/structure/dump.rb
hanami-cli-2.0.3 lib/hanami/cli/commands/app/db/structure/dump.rb
hanami-cli-2.0.2 lib/hanami/cli/commands/app/db/structure/dump.rb
hanami-cli-2.0.1 lib/hanami/cli/commands/app/db/structure/dump.rb
hanami-cli-2.0.0 lib/hanami/cli/commands/app/db/structure/dump.rb