DdlGenerator

Generates CQL DDL statements from TableSchema instances.

  • Composite partition keys are wrapped in double parens: PRIMARY KEY ((user_id, chain), created_at)

  • @Ttl tables get WITH default_time_to_live = N — lookup tables never inherit TTL

  • @SecondaryIndex columns get CREATE INDEX IF NOT EXISTS statements

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the CQL type name for a column as it would appear in DDL (e.g. "UUID", "TEXT", "BIGINT").

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard