Versions in this module Expand all Collapse all v0 v0.14.0 Dec 18, 2024 Changes in this version + type Database struct + Cache caching.FederationCache + DB *sql.DB + IsLocalServerName func(spec.ServerName) bool + RelayQueue tables.RelayQueue + RelayQueueJSON tables.RelayQueueJSON + Writer sqlutil.Writer + func (d *Database) AssociateTransactionWithDestinations(ctx context.Context, destinations map[spec.UserID]struct{}, ...) error + func (d *Database) CleanTransactions(ctx context.Context, userID spec.UserID, receipts []*receipt.Receipt) error + func (d *Database) GetTransaction(ctx context.Context, userID spec.UserID) (*gomatrixserverlib.Transaction, *receipt.Receipt, error) + func (d *Database) GetTransactionCount(ctx context.Context, userID spec.UserID) (int64, error) + func (d *Database) StoreTransaction(ctx context.Context, transaction gomatrixserverlib.Transaction) (*receipt.Receipt, error)