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, reactorsTable, selfReactionsTable string) error
CreateTables provisions the messages, message_pointers, message_reactions, message_reactors and message_self_reactions tables. All use a composite (pk, sk) string key with on-demand billing. The reactors table carries the by_version LSI for strongly-consistent, most-recent-first reactor paging; the other four need no secondary index — event-ordered delta reads page the evt# rows, summary reads page the agg# rows, and a viewer's self overlay pages their own partition, each as a sort-key range. 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.