Sha256: 0b7ebd8ec87467bfda1a02c128bf0e86d3eadf8d21bd291716914c904255642f

Contents?: true

Size: 628 Bytes

Versions: 1

Compression:

Stored size: 628 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

Version Path
hanami-model-1.3.3 lib/hanami/model/sql/consoles/abstract.rb