Class: InCSV::Types::String

Inherits:
ColumnType show all
Defined in:
lib/incsv/types/string.rb

Overview

Represents a String, stored in the database as a VARCHAR(255). This is the fallback datatype, used for anything that doesn’t match any of the other more specific types. Its matching logic is therefore simple: it matches anything. For this reason it must be matched last; this is achieved via require order.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ColumnType

#clean_value, clean_value, #initialize, name

Constructor Details

This class inherits a constructor from InCSV::ColumnType

Class Method Details

.for_databaseObject



9
10
11
# File 'lib/incsv/types/string.rb', line 9

def self.for_database
  "TEXT"
end

Instance Method Details

#match?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/incsv/types/string.rb', line 13

def match?
  true
end