On 30/09/24 05:16, Rick F wrote:
Is there a way in bean-query to dump the table of Entries (I'm referring to the code in query_env.py) containing a function called EntriesTable() which seems to be talking about directives and their attributes. I'd love to be able to dump that table after loading my beancount file.
The only way to print the content of the ledger without any filtering is the PRINT directive. However, it does not return a tabular format, but the content of the ledger in beancount format after it has been interpreted by beancount.
Different beancount directives have different structure and fields, thus it is not really possible to dump all of them in the same table.
I'm feeling rather lost with trying to figure out whether BQ can help me with querying directives -- custom directives in my case.
"custom" directives do not have a fixed structure, thus there isn't an useful way to represent them in a relational table (having a list of strings doesn't seem very useful to me).
When I fire up bean-query and it dumps me to a command prompt, if I then type help it comes up with commands that are available but there's nothing mentioned on how to use these commands.
The existing documentation for bean-query is here https://beancount.github.io/docs/beancount_query_language.html It is a bit outdated, but should give you something to start from.
I just get syntax errors when tying to use "describe" for instance.
All commands that are not BQL directives must be prefixed with a dot. -- 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/02cc6d71-c84a-445b-8262-8442e9d030d4%40grinta.net.
