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

[WIP] Bind function-like string when inserting data #159

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

steliyan
Copy link

Refer to #150 for more details.

Questions:

  • Should we do something for the SELECTs as well?

local defs = {
select = {
"id",
z = fn "date('now')",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is now the only way to execute something as sql?. 🤔 I don't mind it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you use bindings - yes. But you can always use raw: insert date('now') into ....

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

Successfully merging this pull request may close these issues.

2 participants