# XWUIDBCollectionsList

A list-and-manage view for the collections inside one database, mirroring KEYSTONE's `/databases/:db` page. A header shows the database name and key id, a `enterprise/XWUIDataGrid` lists each collection (name, rows, encrypted-field count, primary key), and - when `canCreate`/`canDrop` are set - a create bar (`XWUIInputText` + `XWUIButton`) and per-row Drop buttons backed by an `XWUIDialog` confirm appear. `onCreate`, `onDrop`, and `onOpen` callbacks wire the actions to a backend.

## Basic Usage

An admin view scoped to the tenant-prod database (key hsk-9f4c) listing three collections - users, events, audit-log - with row counts and encrypted-field badges, with create and drop enabled and mock callbacks.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: An admin collections list for tenant-prod with three collections and create/drop affordances enabled.
```

## Analytics Read-Only

A reporting analyst browses the warehouse-bi database with no create or drop rights - only collection links are clickable.

```example
file: examples/AnalyticsReadOnly.ts
html: examples/AnalyticsReadOnly.html
title: Analytics Read-Only
description: A read-only warehouse-bi view with five fact/dim/agg collections at warehouse scale and only an onOpen navigation hook.
```

## Time-Series Cluster

An IoT telemetry database with 24 monthly shards that paginate, where Create is allowed but Drop is intentionally withheld for append-only data.

```example
file: examples/TimeSeriesCluster.ts
html: examples/TimeSeriesCluster.html
title: Time-Series Cluster
description: A fleet-telemetry database with 24 paginated monthly shards, create enabled and drop disabled for append-only safety.
```

```api
```
