@@ -47,7 +47,7 @@ template<> struct string_traits<pgvector::Vector> {
4747 }
4848
4949 static std::string_view to_buf (std::span<char > buf, const pgvector::Vector& value, ctx c = {}) {
50- const std::vector<float >& values = value.as_vector ();
50+ const std::vector<float >& values = value.values ();
5151
5252 // important! size_buffer cannot throw an exception on overflow
5353 // so perform this check before writing any data
@@ -71,7 +71,7 @@ template<> struct string_traits<pgvector::Vector> {
7171 }
7272
7373 static size_t size_buffer (const pgvector::Vector& value) noexcept {
74- const std::vector<float >& values = value.as_vector ();
74+ const std::vector<float >& values = value.values ();
7575
7676 // cannot throw an exception here on overflow
7777 // so throw in into_buf
@@ -113,7 +113,7 @@ template<> struct string_traits<pgvector::HalfVector> {
113113 }
114114
115115 static std::string_view to_buf (std::span<char > buf, const pgvector::HalfVector& value, ctx c = {}) {
116- const std::vector<pgvector::Half>& values = value.as_vector ();
116+ const std::vector<pgvector::Half>& values = value.values ();
117117
118118 // important! size_buffer cannot throw an exception on overflow
119119 // so perform this check before writing any data
@@ -137,7 +137,7 @@ template<> struct string_traits<pgvector::HalfVector> {
137137 }
138138
139139 static size_t size_buffer (const pgvector::HalfVector& value) noexcept {
140- const std::vector<pgvector::Half>& values = value.as_vector ();
140+ const std::vector<pgvector::Half>& values = value.values ();
141141
142142 // cannot throw an exception here on overflow
143143 // so throw in into_buf
0 commit comments