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



70
71
72
# File 'lib/pgvector/pg.rb', line 70

def decode(string, tuple = nil, field = nil)
  ::Pgvector::Vector.from_text(string).to_a
end