[sqlalchemy] Re: trying to create a custome dialect did not find proper step guide

2023-04-12 Thread Jonathan Vanasco
There are no guides, because this is a very advanced topic.

If you are unable to code this based on the examples I shared above, you 
will have to find someone who can.




On Friday, April 7, 2023 at 11:41:30 PM UTC-4 sayakchak...@gmail.com wrote:

> Thank you sir for your response ,can you please guide me about how to 
> create a customs dialect because in sqlalchemy i find a topic on 3rd party 
> dialect but i dont fine and proper guide for it if you can please can you 
> provide me guide.
>
>
> On Friday, April 7, 2023 at 11:12:14 PM UTC+5:30 Jonathan Vanasco wrote:
>
>> 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/07f14651-4a69-44d3-a50a-3ed4185fc170n%40googlegroups.com.


[sqlalchemy] Re: trying to create a custome dialect did not find proper step guide

2023-04-07 Thread sayak chakraborty
Thank you sir for your response ,can you please guide me about how to 
create a customs dialect because in sqlalchemy i find a topic on 3rd party 
dialect but i dont fine and proper guide for it if you can please can you 
provide me guide.


On Friday, April 7, 2023 at 11:12:14 PM UTC+5:30 Jonathan Vanasco wrote:

> 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/7ec2c57c-289d-43ec-bc71-65535e440adan%40googlegroups.com.


[sqlalchemy] Re: trying to create a custome dialect did not find proper step guide

2023-04-07 Thread Jonathan Vanasco
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.