Attention

This is the documentation for HARP Proxy, actually published as an early preview. Both the software and documentation are a work in progress, and although we already use it on various production servers, they may contain inaccuracies, typographical errors, huge mistakes and empty pages. We work hard to eradicate all mistakes and implement stuff, but it is a long and tedious process. We appreciate your patience and understanding. Of course, any help will be greatly appreciated.

harp_apps.sqlalchemy_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.

to_model(with_user_flags=False)[source]
elapsed
endpoint
finished_at
flags: Mapped[List[UserFlag]]
id
messages: Mapped[List[Message]]
started_at
property tags
tpdex
type
x_cached
x_method
x_no_cache
x_status_class
class TransactionsRepository[source]

Bases: Repository[Transaction]

Type

alias of Transaction

__init__(session_factory, /, tags=None, tag_values=None)[source]
async create(values, /, *, session=None)[source]
Parameters:

values (dict | Transaction)

delete_old(old_after)[source]
Parameters:

old_after (timedelta)

select(*, with_messages=False, with_user_flags=False, with_tags=False)[source]
async set_tags(transaction, tags, /, *, session=None)[source]
Parameters: