Dan, thanks for a good summary!
When I say, that tags and links cannot be grouped by in beanquery I mean, exactly what you said, that you can't use *GROUP BY* tags or links like you can with meta (e.g. GROUP BY entry.meta['invoice'] ) It is a good point, that it is possible to group by a presence of a certain tag or link On Tuesday, June 4, 2024 at 7:54:33 PM UTC+2 [email protected] wrote: > Links, tags, and metadata are facilities provided by beancount that do > not really have a strictly defined role: they are building block for > different workflows. > > Links are tags both allow to attach labels to transactions. As the name > implies, links are generally used to link related transactions, tags are > generally used for classification. Tags can be applied to a group of > transactions with the "pushtag" and "poptag" directives. Links do not > have a similar mechanism. > > Metadata allow to attach key-value pairs to transactions (and many other > ledger entries). Usually metadata is used for recording structured > information. > > > correction to comparison table > > > > | tags | links | meta > > can be filtered by in beanquery | Yes | Yes | Yes > > Can be several ones in one transaction | Yes | Yes | No > > can be grouped by in beanquery | No | No | Yes > > I'm not sure I understand how you define these properties. > > Metadata fields cannot be lists, but you can have as many metadata > fields attached to one transaction, thus there "can be several meta in > one transaction". > > You cannot group by the `links` or `tags` columns in bean-query, but you > cannot group by the `meta` column either. You can group by the value of > a specific metadata field, but you can also group by the presence of a > specific link or tag. Therefore I don't understand what you mean with > the last line. > > 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/98c1ef43-5174-4069-bd85-3f3ba941bd63n%40googlegroups.com.
