Skip to content

Rename SQLServer_VectorStore to SQLServerVectorStore with deprecated alias - #798

Merged
Facundo Santiago (santiagxf) merged 3 commits into
mainfrom
copilot/rename-sqlserver-vectorstore
Jul 2, 2026
Merged

Rename SQLServer_VectorStore to SQLServerVectorStore with deprecated alias#798
Facundo Santiago (santiagxf) merged 3 commits into
mainfrom
copilot/rename-sqlserver-vectorstore

Conversation

Copilot AI commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

langchain_sqlserver.vectorstores.SQLServer_VectorStore didn't follow the repository's class naming conventions. This renames it to SQLServerVectorStore and keeps the old name as a deprecated alias for backward compatibility.

Changes

  • vectorstores.py: Renamed the class (and all internal type references/docstrings) to SQLServerVectorStore. Added SQLServer_VectorStore as a subclass decorated with langchain_core._api.deprecated, emitting a DeprecationWarning that points to the new name.
  • __init__.py: Exports both SQLServerVectorStore (canonical) and SQLServer_VectorStore (deprecated).
  • Tests: Updated usages to the new name, adjusted EXPECTED_ALL, and added a test asserting the alias subclasses the renamed class.

Usage

# Preferred
from langchain_sqlserver import SQLServerVectorStore

# Still works, warns
from langchain_sqlserver import SQLServer_VectorStore

Old code continues to run; instantiating SQLServer_VectorStore surfaces:

The class SQLServer_VectorStore was deprecated in LangChain 1.0.2. Use SQLServerVectorStore instead.

@santiagxf
Facundo Santiago (santiagxf) merged commit 4f2c40b into main Jul 2, 2026
11 checks passed
@santiagxf
Facundo Santiago (santiagxf) deleted the copilot/rename-sqlserver-vectorstore branch July 2, 2026 18:42
DevNinja (0xDevNinja) added a commit to 0xDevNinja/langchain-azure that referenced this pull request Jul 3, 2026
Resolve __init__ and test_imports conflicts from the SQLServerVectorStore
rename (langchain-ai#798); keep chat history export alongside the renamed class and
deprecated alias. Apply ruff format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants