# `LLMProxy.Storage.Ecto`
[🔗](https://github.com/elixir-vibe/llm_proxy/blob/v0.3.1/lib/llm_proxy/storage/ecto.ex#L1)

Context functions for all database operations: keys, usage, quotas, tokens.

# `add_token`

# `check_model_access`

# `check_quota`

# `check_service_quota`

# `create_key`

# `delete_key`

# `find_key`

# `find_trace_by_request_id`

# `get_cache_ratio_in_window`

# `get_daily_stats`

# `get_message_count_in_window`

# `get_messages`

# `get_service_usage_in_window`

# `get_stats`

# `get_tokens`

# `get_trace`

# `get_trace_feedback`

# `get_traces`

# `get_usage_in_window`

# `list_keys`

# `list_tokens`

# `list_trace_feedback`

# `log_message`

# `record_service_usage`

# `record_trace`

# `record_trace_feedback`

# `record_usage`

# `remove_token`

# `seed_tokens_from_env`

# `set_content_capture`

# `set_key_enabled`

# `set_token_enabled`

# `update_key_models`

# `update_key_quota`

# `update_key_usage`

# `update_message_usage`

# `update_token_oauth`

# `update_token_proxy`

---

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