Sha256: e5da8317db831bc4260b653eab0ac377e1f6374b2077c1220cb700fd329845a0

Contents?: true

Size: 241 Bytes

Versions: 7

Compression:

Stored size: 241 Bytes

Contents

# frozen_string_literal: true

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

      def quote
        connection.quote_table_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/table_name_type.rb
stairwell-0.6.4 lib/stairwell/types/table_name_type.rb
stairwell-0.6.3 lib/stairwell/types/table_name_type.rb
stairwell-0.6.2 lib/stairwell/types/table_name_type.rb
stairwell-0.6.1 lib/stairwell/types/table_name_type.rb
stairwell-0.6.0 lib/stairwell/types/table_name_type.rb
stairwell-0.5.0 lib/stairwell/types/table_name_type.rb