class AlgebraDB::Exec::Decoder

Informational class that holds a decoder.

Public Instance Methods

decode_value(db_value) click to toggle source

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

# File lib/algebra_db/exec/decoder.rb, line 15
def decode_value(db_value)
  db_value
end
pg_decoder() click to toggle source

The decoder given to postgres for a string.

# File lib/algebra_db/exec/decoder.rb, line 8
def pg_decoder
  PG::TextDecoder::String.new
end