Enhancement: Allow parameterized query calls.
See original GitHub issueCurrently to query, I have to write something like this
val events = Event().query { query -> query.equalTo("id",1) }
Which according to me
- Not memory efficient: Because I need to initialize one empty object just to query.
- Not idiomatic: There is a better way to write this query functions.
I think the better way of writing query functions should be something like this
val events = query<Event> {query -> query.equalTo("id", 1) }
This feels more idiomatic and looks memory friendly.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Amazon Athena enhances console and API support for ...
You can now run parameterized queries directly from the Athena console and an enhanced API that no longer requires you to prepare SQL...
Read more >Parameterized SQL query over dynamic SQL query
On the other hand, SQL Parameterized Query separates the SQL query from the user input. It allows the developer to define the SQL...
Read more >Query Optimization Techniques in SQL Server: Parameter ...
In this blog post we will walk you through one of the SQL Query Optimization Techniques in SQL Server - Parameter Sniffing.
Read more >Parameterized Query - an overview | ScienceDirect Topics
1. Use parameterized queries: This is the oldest advice to battle SQL injection where placeholders (think: variables) are used to store user input...
Read more >Can parameterized statement stop all SQL injection?
There are many advantages to stored procedures including cached query plans; yes, this can be accomplished with parameters and inline SQL, but that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The changes are now merged in master.
Thanks your very much @PrashamTrivedi , I will review it as soon as I can.