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.

named queries support

See original GitHub issue

I find myself constantly having to update some queries all over the place.

for example, I have a query in my daily note template to show the tasks that were completed on that date. it took me a while to get a reasonable version of it (and I’m still not sure I’m done). by that time this query is in many daily notes, so I have to go and fix it everywhere.

or, another example, before the support for startswith, all my index and inbox notes, tested for inclusion in the folder with split(file.folder, "/", length(split(this.file.folder, "/"))) = split(this.file.folder, "/"). of course, when startswith came out, I had to go over all of them and upgrade.

it would be nice, instead, to have a note with predefined queries, and then just reference those queries where needed.

embedding partials doesn’t work as partials do not have access to the embedding page.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
vitalycommented, Oct 8, 2021

Regarding the documentation vor views, the important missing piece for me was that arguments are available through input

1reaction
blacksmithgucommented, Oct 2, 2021

For an immediate solution if you use DataviewJS, you can use the customJS plugin OR use dataview views dv.view(path-to-js-file, { args }).

Read more comments on GitHub >

github_iconTop Results From Across the Web

JPA Named Queries - ObjectDB
A named query is a statically defined query with a predefined unchangeable query string. Using named queries instead of dynamic queries may improve...
Read more >
Named Queries - pgcli
Named Queries are a way to save frequently used queries with a short name. ... Named queries support shell-style parameter substitution.
Read more >
Named Queries - Ignition User Manual 8.1
The Named Queries Welcome tab allows you to create three types of named queries. Each one of the named query types is basically...
Read more >
Hibernate Named Query Example - @NamedQuery
Welcome to Hibernate Named Query Example Tutorial. We saw how we can use HQL and Native SQL Query in Hibernate.
Read more >
namedQueries - The Grails Framework 5.2.5
The list method on named queries supports the same attributes as the static list method added to domain classes (sort, order, ignoreCase, fetch...
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