Class: AlgebraDB::Exec::Decoder

Inherits:
Object
  • Object
show all
Defined in:
lib/algebra_db/exec/decoder.rb

Overview

Informational class that holds a decoder.

Instance Method Summary collapse

Instance Method Details

#decode_value(db_value) ⇒ Object

Post-processing: after we use the pg decoder to load from DB, transform it here! By default, does nothing.



15
16
17
# File 'lib/algebra_db/exec/decoder.rb', line 15

def decode_value(db_value)
  db_value
end

#pg_decoderObject

The decoder given to postgres for a string.



8
9
10
# File 'lib/algebra_db/exec/decoder.rb', line 8

def pg_decoder
  PG::TextDecoder::String.new
end