Use the Query directive.

2018-12-31 query "myquery" "select ...."

You can define it over multiple lines, and summon it via

bean-query <filename> run myquery




On Thu, Sep 20, 2018 at 10:35 PM Oon-Ee Ng <[email protected]> wrote:

> Is there a way to save queries (without going through cat | xarg or
> similar)? Perhaps to a file (or in the beancount file itself)?
>
> --
> 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 post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/CAGQ70esg5ooPR8KMp07OM%2BzUFON-KHXsL7dee2Aji%3DDPh%3DAHiA%40mail.gmail.com
> <https://groups.google.com/d/msgid/beancount/CAGQ70esg5ooPR8KMp07OM%2BzUFON-KHXsL7dee2Aji%3DDPh%3DAHiA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhOavNbR8sDoPmeWQfG3UbMXP81b6-PJ-_5Mthr1XJFYAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to