Expand description
Database-backed mail outbox table and dispatch store.
Aster products share the same mail outbox persistence mechanics: enqueue a rendered-template payload, claim due rows, move failed deliveries to retry or failed, clear sensitive payload JSON after terminal states, and count active rows. Products still own template rendering, audit records, and the business context that creates outbox rows.
Structs§
- Active
Model - Generated by sea-orm-macros
- Column
Iter - An iterator over the variants of Column
- Entity
- Generated by sea-orm-macros
- Mail
Outbox Create - Product request to enqueue one mail outbox row.
- Mail
Outbox DbStore - SeaORM-backed mail outbox store.
- Model
- SeaORM model for
mail_outbox. - Primary
KeyIter - An iterator over the variants of PrimaryKey
- Relation
Iter - An iterator over the variants of Relation
Enums§
- Column
- Generated by sea-orm-macros
- Primary
Key - Generated by sea-orm-macros
- Relation
Constants§
- MAIL_
OUTBOX_ ATTEMPT_ COUNT_ COLUMN - Delivery attempt count column.
- MAIL_
OUTBOX_ CREATED_ AT_ COLUMN - Row creation timestamp column.
- MAIL_
OUTBOX_ DUE_ INDEX - Index name for due-row dispatch scans.
- MAIL_
OUTBOX_ ID_ COLUMN - Stable row id column.
- MAIL_
OUTBOX_ LAST_ ERROR_ COLUMN - Last delivery error column.
- MAIL_
OUTBOX_ NEXT_ ATTEMPT_ AT_ COLUMN - Next delivery attempt timestamp column.
- MAIL_
OUTBOX_ PAYLOAD_ JSON_ COLUMN - Stored template payload JSON column.
- MAIL_
OUTBOX_ PROCESSING_ INDEX - Index name for stale-processing recovery scans.
- MAIL_
OUTBOX_ PROCESSING_ STARTED_ AT_ COLUMN - Processing claim timestamp column.
- MAIL_
OUTBOX_ SENT_ AT_ COLUMN - Sent timestamp column.
- MAIL_
OUTBOX_ SENT_ AT_ INDEX - Index name for sent-row retention scans.
- MAIL_
OUTBOX_ STATUS_ COLUMN - Dispatch status column.
- MAIL_
OUTBOX_ TABLE - Mail outbox table name.
- MAIL_
OUTBOX_ TEMPLATE_ CODE_ COLUMN - Template code column.
- MAIL_
OUTBOX_ TO_ ADDRESS_ COLUMN - Recipient email address column.
- MAIL_
OUTBOX_ TO_ NAME_ COLUMN - Optional recipient display name column.
- MAIL_
OUTBOX_ UPDATED_ AT_ COLUMN - Row update timestamp column.
Functions§
- create_
mail_ outbox_ due_ index - Builds the due-row index used by dispatch polling.
- create_
mail_ outbox_ processing_ index - Builds the processing-stale index used by dispatch recovery.
- create_
mail_ outbox_ row - Enqueues one pending mail outbox row using any SeaORM connection or transaction.
- create_
mail_ outbox_ sent_ at_ index - Builds the sent timestamp index used by retention and admin queries.
- create_
mail_ outbox_ table - Builds the shared
mail_outboxtable creation statement. - drop_
mail_ outbox_ table - Builds the shared
mail_outboxtable drop statement.