Skip to content

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

Draft
steliyan wants to merge 2 commits intokkharji:masterfrom
steliyan:binding-fn
Draft

[WIP] Bind function-like string when inserting data#159
steliyan wants to merge 2 commits intokkharji:masterfrom
steliyan:binding-fn

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