mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 11:39:18 +00:00
community: Use default load() implementation in doc loaders (#18385)
Following https://github.com/langchain-ai/langchain/pull/18289
This commit is contained in:
committed by
GitHub
parent
42341bc787
commit
177f51c7bd
@@ -104,9 +104,6 @@ class SQLDatabaseLoader(BaseLoader):
|
||||
|
||||
yield Document(page_content=page_content, metadata=metadata)
|
||||
|
||||
def load(self) -> List[Document]:
|
||||
return list(self.lazy_load())
|
||||
|
||||
@staticmethod
|
||||
def page_content_default_mapper(
|
||||
row: sa.RowMapping, column_names: Optional[List[str]] = None
|
||||
|
Reference in New Issue
Block a user