beanquery
beanquery copied to clipboard
A customizable light-weight SQL query tool that works on tabular data, including Beancount.
**[Original report](https://bitbucket.org/blais/beancount/issue/351) by Martin Michlmayr (Bitbucket: [tbm13](https://bitbucket.org/tbm13), GitHub: [tbm](https://github.com/tbm)).** ---------------------------------------- I [posted this to the beancount list](https://groups.google.com/forum/#!topic/beancount/SGDBejEtd0I) and Martin said this isn't supported at the moment. Opening a ticket. I...
It seems like `print` only supports `from`. What do you think of adding `where` to `print` and how hard would it be? Ledger allows this and this is a great...
The CSV table renderer goes the same column values formatting code used by the display renderer. Most of the work done by the renderers is not required for exporting to...
According to the documentation for the `query` directive https://beancount.github.io/docs/beancount_language_syntax.html#query: > Also, the date of the query is intended to be the date at which the query is intended to be...
Make the division operator handle division by zero returning `NULL` as in SQL and eventually remove the `SAFE_DIV()` function.
**[Original report](https://bitbucket.org/blais/beancount/issue/344) by Martin Michlmayr (Bitbucket: [tbm13](https://bitbucket.org/tbm13), GitHub: [tbm](https://github.com/tbm)).** ---------------------------------------- I specify a column name via "AS foo" but then "WHERE foo" says that "foo" is an invalid column. It...
Currently BQL uses single `'` and double `"` quotes interchangeably as string delimiters and does not have the concept of quoted identifiers. This make is impossible to have column names...
Working toward the goal on making beanquery a general purpose SQL-like query language for arbitrary data and make the BQL language more regular, we need to decide what to do...
SELECT YEAR, SUM(position) WHERE account ~ '^Income' GROUP BY YEAR ORDER BY YEAR Unfortunately, the financial year is not the calendar year. It would be nice for BQL to somehow...
This should work: beancount> select account, sum(position) where currency = 'IRAUSD' group by account order by type; ERROR: All non-aggregates must be covered by GROUP-BY clause in aggregate query.