# `AshScylla.Extension`
[🔗](https://github.com/ohhi-vn/ash_scylla/blob/main/lib/ash_scylla/extension.ex#L1)

AshScylla extension for `mix ash.codegen` and `mix ash.migrate` support.

This extension generates CQL migration files for AshScylla resources
and runs them against the database.

# `parse_codegen_argv`

```elixir
@spec parse_codegen_argv(Ash.Extension.argv()) :: keyword()
```

Translates the `mix ash.codegen` argv into options for
`AshScylla.MigrationGenerator.generate/1`.

Handles both a leading positional migration name and an explicit `--name`
flag (Ash injects `--name <name>` for the positional argument), plus the
shared `--dev` / `--dry-run` / `--check` / `--force` flags.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
