Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTables ¶
func CreateTables(ctx context.Context, client *dynamodb.Client, messagesTable, pointersTable, reactionsTable string) error
CreateTables provisions the messages, message_pointers, and message_reactions tables. All use a composite (pk, sk) string key with on-demand billing. The reactions table carries the reactors_by_recency GSI for most-recent-first reactor paging; the messages table needs no secondary index — event-ordered delta reads page the evt# rows as a strongly-consistent sort-key range in the chat's own partition. The messages table has TTL enabled on attrExpiresAt so the transient cmid# idempotency markers are auto-reaped. It is idempotent: tables that already exist are left as-is. The call blocks until all tables are ACTIVE.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.