File tree Expand file tree Collapse file tree 6 files changed +10
-13
lines changed
Expand file tree Collapse file tree 6 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,6 @@ This document outlines features and improvements from each release.
88 are for non-production testing and evaluation, and may include
99 changes to the API.
1010
11- v1.14.0 - May 28, 2025
12- ------------------------
13- * Add ``vector_db `` property to a ``Connection `` object to get the vectorstor API to the current database
14- * Add ``vector_db(...) `` function to connect to a database and optain a vectorstor API
15-
1611v1.13.0 - April 16, 2025
1712------------------------
1813* Refactor external function server (experimental) type system
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ parsimonious
33PyJWT
44requests
55setuptools
6- singlestore-vectorstore >= 0.1.1
6+ singlestore-vectorstore >= 0.1.2
77sqlparams
88tomli >= 1.1.0 ; python_version < '3.11'
99typing_extensions <= 4.13.2
Original file line number Diff line number Diff line change 11[metadata]
22name = singlestoredb
3- version = 1.14.0
3+ version = 1.13.1
44description = Interface to the SingleStoreDB database and workspace management APIs
55long_description = file: README.md
66long_description_content_type = text/markdown
@@ -24,7 +24,7 @@ install_requires =
2424 parsimonious
2525 requests
2626 setuptools
27- singlestore-vectorstore>=0.1.1
27+ singlestore-vectorstore>=0.1.2
2828 sqlparams
2929 wheel
3030 tomli>=1.1.0; python_version < '3.11'
Original file line number Diff line number Diff line change 1313
1414"""
1515
16- __version__ = '1.14.0 '
16+ __version__ = '1.13.1 '
1717
1818from typing import Any
1919
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22"""SingleStoreDB connections and cursors."""
33import abc
4+ import functools
45import inspect
56import io
67import queue
@@ -1288,15 +1289,13 @@ def show(self) -> ShowAccessor:
12881289 """Access server properties managed by the SHOW statement."""
12891290 return ShowAccessor (self )
12901291
1291- @property
1292+ @functools . cached_property
12921293 def vector_db (self ) -> Any :
12931294 """
12941295 Get vectorstore API accessor
12951296 """
12961297 from vectorstore import VectorDB
1297- if not hasattr (self , '_vector_db' ):
1298- self ._vector_db = VectorDB (connection = self )
1299- return self ._vector_db
1298+ return VectorDB (connection = self )
13001299
13011300
13021301#
Original file line number Diff line number Diff line change @@ -46,3 +46,6 @@ def test_vectordb_from_connection(self) -> None:
4646 assert index .dimension == 4
4747 assert index .tags == {'name' : 'test_tag' }
4848 assert db .has_index ('test_index_1' )
49+
50+ db2 : VectorDB = conn .vector_db
51+ assert db2 .has_index ('test_index_1' )
You can’t perform that action at this time.
0 commit comments