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

Support for quoted bindings #38

Open
philippefutureboy opened this issue Aug 14, 2018 · 0 comments
Open

Support for quoted bindings #38

philippefutureboy opened this issue Aug 14, 2018 · 0 comments

Comments

@philippefutureboy
Copy link

philippefutureboy commented Aug 14, 2018

Hi!

I'd like to request a feature to have quoted bindings, with the option of choosing the character used for quoting (", "`"). This feature allows to quote bindings to use them as table names, schema names, etc, while keeping the benefits of escape provided by bindings.

Is this a feature or a bug? Feature

What is the expected behaviour?

SELECT * FROM ??.??;

with bindings

['MySchema', 'MyTableName']

should produce

SELECT * FROM `MySchema`.`MyTableName`;

Why is this pertinent for this module?

As said above, this can enable to build dynamic queries with table names, column names, etc. as bindings.

Any existing implementation in similar modules?

  • knex supports quoted bindings

Thanks for your great work :)

Cheers! 🎉

Phil

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