# `DripDrop.TenantScope`
[🔗](https://github.com/agoodway/dripdrop/blob/v0.1.0/lib/dripdrop/tenant_scope.ex#L1)

Helpers for enforcing explicit tenant scope on query APIs.

DripDrop allows global records with `tenant_key: nil`, but callers must be
explicit when they intend that global scope. Omitting the key entirely is
rejected so list/get helpers do not accidentally leak rows across tenants.

# `fetch!`

```elixir
@spec fetch!(map(), atom()) :: binary() | nil
```

Fetches `tenant_key` from a filter map, raising when it is absent.

# `raise_missing!`

```elixir
@spec raise_missing!(atom()) :: no_return()
```

Raises a consistent tenant-scope error for deprecated unscoped APIs.

---

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