Class: Pgvector::PG::TextDecoder::Vector

Inherits:
PG::SimpleDecoder
  • Object
show all
Defined in:
lib/pgvector/pg.rb

Instance Method Summary collapse

Instance Method Details

#decode(string, tuple = nil, field = nil) ⇒ Object



11
12
13
# File 'lib/pgvector/pg.rb', line 11

def decode(string, tuple = nil, field = nil)
  string[1..-2].split(",").map(&:to_f)
end