Module: Imparcial::Driver::PostgreTypemap

Included in:
PostgreAdapter
Defined in:
lib/imparcial/driver/postgre/typemap.rb

Instance Method Summary collapse

Instance Method Details

#regular_typesObject



5
6
7
8
9
# File 'lib/imparcial/driver/postgre/typemap.rb', line 5

def regular_types
  
  super.dup.merge!(:datetime => 'TIMESTAMP')
  
end

#sql_typesObject



11
12
13
14
15
16
# File 'lib/imparcial/driver/postgre/typemap.rb', line 11

def sql_types

  super.dup.merge!('CHARACTER VARYING' => :string, 
  'DOUBLE PRECISION' => :float) 
  
end