Class: DatabaseConsistency::Databases::Types::Sqlite

Inherits:
Base
  • Object
show all
Defined in:
lib/database_consistency/databases/types/sqlite.rb

Overview

Wraps types for SQLite database

Constant Summary collapse

TYPES =
{
  'bigserial' => 'bigint',
  'serial' => 'integer',
  'integer(8)' => 'bigint',
  'integer(4)' => 'integer',
  'integer(2)' => 'smallint'
}.freeze

Constants inherited from Base

Base::COVERED_TYPES, Base::NUMERIC_TYPES

Instance Attribute Summary

Attributes inherited from Base

#type

Instance Method Summary collapse

Methods inherited from Base

#cover?, #initialize, #numeric?

Constructor Details

This class inherits a constructor from DatabaseConsistency::Databases::Types::Base

Instance Method Details

#convertString

Returns:

  • (String)


17
18
19
# File 'lib/database_consistency/databases/types/sqlite.rb', line 17

def convert
  TYPES[type] || type
end