question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhancement: Allow parameterized query calls.

See original GitHub issue

Currently 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:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
vicpinmcommented, Jan 17, 2018

The changes are now merged in master.

0reactions
vicpinmcommented, Jan 8, 2018

Thanks your very much @PrashamTrivedi , I will review it as soon as I can.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found