Sha256: af4f7c5086bac64deeee283af49395c86c9b8a0f4770ba98f094a1c39d7f3847

Contents?: true

Size: 597 Bytes

Versions: 24

Compression:

Stored size: 597 Bytes

Contents

module Hanami
  module Model
    module Sql
      module Consoles
        # Abstract adapter
        #
        # @since 0.7.0
        # @api private
        class Abstract
          # @since 0.7.0
          # @api private
          def initialize(uri)
            @uri = uri
          end

          private

          # @since 0.7.0
          # @api private
          def database_name
            @uri.path.sub(/^\//, '')
          end

          # @since 0.7.0
          # @api private
          def concat(*tokens)
            tokens.join
          end
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
hanami-model-1.3.2 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.3.1 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.3.0 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.3.0.beta1 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.2.0 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.2.0.rc2 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.2.0.rc1 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.2.0.beta2 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.2.0.beta1 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.1.0 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.1.0.rc1 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.0.4 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.0.3 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.1.0.beta3 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.1.0.beta2 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.1.0.beta1 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.0.2 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.0.1 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.0.0 lib/hanami/model/sql/consoles/abstract.rb
hanami-model-1.0.0.rc1 lib/hanami/model/sql/consoles/abstract.rb