On 03/08/23 07:20, Eric Altendorf wrote:
On Wed, Aug 2, 2023 at 5:55 PM Martin Blais <[email protected]
<mailto:[email protected]>> wrote:
On Thu, Aug 3, 2023, 08:54 Martin Blais <[email protected]
<mailto:[email protected]>> wrote:
Use bn.loader.load_file(), not just the parser.
Beancount has two stages: parsing, then booking and running all
the plugins.
Loading does both.
The query is intended to be run on the output of the loader.
Awesome. I figured it must be something like that.
BTW, I recently added another main entry point for the beanquery API
that should make its use a bit easier:
import beanquery
connection = beanquery.connect('beancount:' + filename)
types, rows = connection.execute('''SELECT ...''')
It is a first step into providing a Python DB-API interface, thus it
will be further transformed, but if you want to experiment with it, it
works in the form above now.
Cheers,
Dan
--
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/2aa53205-98c9-4882-0c9d-16898b715cfe%40grinta.net.