Skip to content

Commit 92f402e

Browse files
review comments
1 parent 2bd9418 commit 92f402e

File tree

6 files changed

+10
-13
lines changed

6 files changed

+10
-13
lines changed

docs/src/whatsnew.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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-
1611
v1.13.0 - April 16, 2025
1712
------------------------
1813
* Refactor external function server (experimental) type system

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ parsimonious
33
PyJWT
44
requests
55
setuptools
6-
singlestore-vectorstore>=0.1.1
6+
singlestore-vectorstore>=0.1.2
77
sqlparams
88
tomli>=1.1.0; python_version < '3.11'
99
typing_extensions<=4.13.2

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = singlestoredb
3-
version = 1.14.0
3+
version = 1.13.1
44
description = Interface to the SingleStoreDB database and workspace management APIs
55
long_description = file: README.md
66
long_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'

singlestoredb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1414
"""
1515

16-
__version__ = '1.14.0'
16+
__version__ = '1.13.1'
1717

1818
from typing import Any
1919

singlestoredb/connection.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
"""SingleStoreDB connections and cursors."""
33
import abc
4+
import functools
45
import inspect
56
import io
67
import 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
#

singlestoredb/tests/test_vectorstore.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)