# `MingaAgent.EventLog.Writer`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga_agent/event_log/writer.ex#L1)

Single ordered SQLite writer for `MingaAgent.EventLog`.

This process exclusively owns the write connection and executes at most one insert or retention operation at a time. It monitors its EventLog owner so the connection is closed when that owner terminates, including an untrappable kill.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start`

```elixir
@spec start(
  pid(),
  keyword()
) :: GenServer.on_start()
```

Starts an unlinked writer monitored by its EventLog owner.

---

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