Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to specify the enclosing character #816

Open
simonaubertbd opened this issue Sep 11, 2024 · 2 comments
Open

A way to specify the enclosing character #816

simonaubertbd opened this issue Sep 11, 2024 · 2 comments

Comments

@simonaubertbd
Copy link

Hello,

Reading the documentation and in the examples, the enclosing character is always "

https://pypika.readthedocs.io/en/latest/2_tutorial.html

SELECT "history".* FROM "history" JOIN "customers" ON "history"."customer_id"="customers"."id" WHERE "customers"."id"=5

However, it may differ in many databases such as Apache Hive where it 's a backtick.

Therefore, I would like a way to specify this enclosing character.

Best regards,

Simon

@maen-allaga
Copy link

@simonaubertbd (I'm not a maintainer, so take my answer with a grain of salt please).
I believe what you're asking for is a new Dialect

@simonaubertbd
Copy link
Author

@maen-allaga Hello and thanks for your answer. Not exactly. For me, it should work that way :
-dedicated dialectS. Enclosing character is well specified.
-generic dialect (some kind of "default" one). Enclosing character is by default the double quote but the user has the ability to specify another one.

Moreoever, I'm not sure that now, the enclosing character is specified (but I may have missed that in the code).

Best regards,

Simon

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

No branches or pull requests

2 participants