MCPcopy Create free account
hub / github.com/astercloud/aster / Close

Method Close

pkg/vector/pgvector/store.go:189–194  ·  view source on GitHub ↗

Close 关闭连接池。

()

Source from the content-addressed store, hash-verified

187
188// Close 关闭连接池。
189func (s *Store) Close() error {
190 if s.pool != nil {
191 s.pool.Close()
192 }
193 return nil
194}
195
196// float32SliceToPgVector 将 []float32 转为 pgvector 兼容的 []float32。
197// 这里直接复用原 slice, pgx 会将其编码为 pgvector 类型。

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected