View Source mix dynamo.create_table (Dynamo v0.2.0)
Creates a DynamoDB table and waits until it is ACTIVE.
mix dynamo.create_table TABLE_NAME [options]
mix dynamo.create_table --schema MyApp.User [options]
mix dynamo.create_table --schema MyApp.User --schema MyApp.Order [options]With --schema the table name, key attribute names and global secondary
indexes are taken from the schema module. Pass --schema several times for a
single-table design: all schemas must share the table and key layout; their
indexes are merged.
Options
--schema Schema module to derive table/keys/GSIs from (repeatable)
--partition-key Partition key attribute (default: "pk")
--sort-key Sort key attribute (default: "sk")
--no-sort-key Create a table without a sort key
--key-type Key attribute type S|N|B (default: S)
--billing-mode PAY_PER_REQUEST (default) or PROVISIONED
--read-capacity RCU when PROVISIONED (default: 5)
--write-capacity WCU when PROVISIONED (default: 5)
--endpoint DynamoDB endpoint (e.g. http://localhost:8000)
--region AWS region
--repo Use a started repo's client (e.g. MyApp.Dynamo)
--no-wait Return immediately after CreateTable