Most custom dialects are written by forking an existing dialect.

Unfortunately, a dialect can not accomplish what you want to do.

SqlAlchemy Dialects are used to generate SQL, which is then passed to the 
database via a DBAPI driver.

For example, when someone uses PostgreSQL with SQLAlchemy, they use the 
SQLAlchemy postgresql dialect AND their choice of a DBAPI driver (which 
could be any one of psycopg2, psycopg 3, pg8000, asyncpg, psycopg2cffi, etc)

There are a few independent projects that developed REST solutions by 
writing both a dialect AND a DBAPI driver into a single package.

Examples include:
 https://github.com/laughingman7743/PyAthena/
 https://github.com/betodealmeida/gsheets-db-api
 https://github.com/aadel/sqlalchemy-solr

You will need to implement a solution similar to one of the above projects.

If you look at the table of known dialects 
- https://docs.sqlalchemy.org/en/20/dialects/index.html - you may find 
other projects that implemented dialect+dbapi drivers in a single package.

On Friday, April 7, 2023 at 1:03:19 AM UTC-4 sayakchak...@gmail.com wrote:

> create a custom SQLAlchemy  dialect, called PCRRESTapiDialect for SQL 
> Alchemy that can call a rest api and return result as a table.
> i am trying to achive this but i dont find  any solution

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/c9390a59-d63f-4069-b9f9-989ac2c65399n%40googlegroups.com.

Reply via email to