Skip to content

What is the intended (future?) design concerning structured type (entry.payee, amount.numbers, ...) #267

@mlell

Description

@mlell

There are multiple structured objects which can be accessed using an object.attribute-syntax. For example, this query yields
four columns of which the first two and the second two are exactly equal:

select payee as n1, entry.payee as n2, number as u1, position.units.number as u2 from date > 2025-11-01 

What is the rationale between this duplication. It seems like the project can't really decide whether it wants a functional interface, were we apply a large set of functions to types to get our values (like currency(units(position))) or an object-oriented interface, where we use an attribute to get properties of objects like postings.units.currency.

Currently, both syntaxes are valid in beanquery. What is the intended direction of this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions