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

Marker type for quote_name() #935

Open
jtv opened this issue Jan 19, 2025 · 0 comments
Open

Marker type for quote_name() #935

jtv opened this issue Jan 19, 2025 · 0 comments

Comments

@jtv
Copy link
Owner

jtv commented Jan 19, 2025

Similar to what I've done with pqxx::prepped, it'd be nice to have a marker type to indicate the need to quote a string as an identifier (e.g. a table or column name). We can then teach quote() to deal with that specially.

That could be two steps on the way to making quote() universal: "quote this value if & as needed give its type." Once we have that, it might become feasible to do generic client-side insertion of parameter values — which we could then eventually use to implement parameters on streaming queries.

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

1 participant