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',
  'bigint' => 'bigint',
  'serial' => 'integer',
  'integer' => 'integer'
}.freeze

Instance Attribute Summary

Attributes inherited from Base

#type

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

#convertString

Returns:

  • (String)


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

def convert
  TYPES[type] || type
end