Sha256: a8683de4c8c2d2c90e3757a0fb647cb97335cbee8c746471fc89deb0d19a8685

Contents?: true

Size: 243 Bytes

Versions: 7

Compression:

Stored size: 243 Bytes

Contents

# frozen_string_literal: true

module Stairwell
  module Types
    class ColumnNameType < BaseType
      def valid?
        value.is_a?(String)
      end

      def quote
        connection.quote_column_name(value)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stairwell-0.6.5 lib/stairwell/types/column_name_type.rb
stairwell-0.6.4 lib/stairwell/types/column_name_type.rb
stairwell-0.6.3 lib/stairwell/types/column_name_type.rb
stairwell-0.6.2 lib/stairwell/types/column_name_type.rb
stairwell-0.6.1 lib/stairwell/types/column_name_type.rb
stairwell-0.6.0 lib/stairwell/types/column_name_type.rb
stairwell-0.5.0 lib/stairwell/types/column_name_type.rb