harp_apps.storage.models.transactions¶
- class Transaction[source]¶
Bases:
Base
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- __init__(**kwargs)¶
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- property tags¶
- class TransactionsRepository[source]¶
Bases:
Repository
[Transaction
]- Type¶
alias of
Transaction
- async create(values, /, *, session=None)[source]¶
- Parameters:
values (dict | Transaction)
- async set_tags(transaction, tags, /, *, session=None)[source]¶
- Parameters:
transaction (Transaction)
tags (dict)