It runs fine, I use this all the time.

$ cat b.bc
plugin "beancount.plugins.auto_accounts"

2021-05-09 * "Just a check"
  Assets:Bank -100 USD
  Expenses:Groceries

2021-01-01 query "word test" "SELECT *"

$ bean-query b.bc "run 'word test'"
   date    f   narration   position
---------- - - ------------ --------
2021-05-09 *   Just a check  -100 USD
2021-05-09 *   Just a check  100 USD
On Friday, May 21, 2021 at 1:59:14 PM UTC-7 Oon-Ee Ng wrote:

> Is the above possible? If my query looks like this:-
>
> 2021-01-01 query "Card Statement Spend"
> SELECT
> .....
>
> It shows up in fava and fava can run it to get the appropriate numbers and 
> graphs, but I can't run `bean-query "run Card Statement Spend"`. I will get 
> the error as below:-
>
> ERROR: Syntax error near 'statement' (at 11)
>
> While if I try `bean-query "run 'Card Statement Spend'"`, I get instead:-
>
> ERROR: Query 'Card Statement Spend' not found
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/beancount/b1d1eecb-ed7e-4049-af62-9565c347597fn%40googlegroups.com.

Reply via email to