No, there is no way to use parameters in queries in that way. It would be a nice thing to add though, so you might check the bean-query project and see if there's already an existing request for something like that and voice your support.
On Thursday, May 15, 2025 at 4:22:31 AM UTC+9:30 [email protected] wrote: > Hi, > > Are query directives and bean-query not intended to be used this way? Or > is this documented somewhere and I failed to find it? > > On Monday, May 5, 2025 at 1:29:18 PM UTC-7 Henry Mitchell wrote: > >> Hi, >> >> I am tinkering with migrating from ledger to beancount. In bean-query, I >> see I can run a query defined as a directive in my ledger with ".run >> query-name". Is there a way to have the query take a parameter and pass it >> in from beanquery? >> >> As a trivial example, suppose I wanted to pass a number to limit here: >> 2100-12-31 query "foo" "select date limit %d" >> >> Can I do so? Various attempts at ".run foo 3" seem to fail. >> > -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/beancount/f42bd7db-8b90-4766-917f-3b2f41912223n%40googlegroups.com.
