SqlAlchemyFetcher#
dbally.similarity.SqlAlchemyFetcher
#
Bases: SimilarityFetcher
Fetches the data from the database using SQLAlchemy.
Source code in src/dbally/similarity/sqlalchemy_base.py
get_query
abstractmethod
#
Returns query that will be used to fetch the data from the database. Should include a single text column.
RETURNS | DESCRIPTION |
---|---|
Select
|
sqlalchemy.Select: The query to fetch the data. |
Source code in src/dbally/similarity/sqlalchemy_base.py
fetch
async
#
Fetches the data from the source and returns it as a list of strings.
RETURNS | DESCRIPTION |
---|---|
List[str]
|
The fetched data. |